From d8cce6597b0678c72c83678243e36d5033adc624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Sinan=20A=C4=9Facan?= Date: Sun, 31 Oct 2021 07:14:47 +0300 Subject: [PATCH] Byte literal and string syntax: add missing quote escapes Current definitions of byte characters and byte literals do not allow escaped single and double quotes. Updated lexical syntax for byte characters and strings to allow these characters. This is in sync with the implementation. --- src/tokens.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tokens.md b/src/tokens.md index 8cdf6dd57..1c14a1819 100644 --- a/src/tokens.md +++ b/src/tokens.md @@ -235,7 +235,7 @@ r##"foo #"# bar"##; // foo #"# bar > > BYTE_ESCAPE :\ >       `\x` HEX_DIGIT HEX_DIGIT\ ->    | `\n` | `\r` | `\t` | `\\` | `\0` +>    | `\n` | `\r` | `\t` | `\\` | `\0` | `\'` | `\"` A _byte literal_ is a single ASCII character (in the `U+0000` to `U+007F` range) or a single _escape_ preceded by the characters `U+0062` (`b`) and