From 91f7f179f1d572a7630d198ed1355085b082728f Mon Sep 17 00:00:00 2001 From: Rex Jaeschke Date: Tue, 11 Aug 2026 05:56:10 -0400 Subject: [PATCH 1/2] add support for ESC escape sequence --- standard/lexical-structure.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/standard/lexical-structure.md b/standard/lexical-structure.md index 1f3634e1e..fa1f01c70 100644 --- a/standard/lexical-structure.md +++ b/standard/lexical-structure.md @@ -846,7 +846,7 @@ fragment Single_Character fragment Simple_Escape_Sequence : '\\\'' | '\\"' | '\\\\' | '\\0' | '\\a' | '\\b' | - '\\f' | '\\n' | '\\r' | '\\t' | '\\v' + '\\e' | '\\f' | '\\n' | '\\r' | '\\t' | '\\v' ; fragment Hexadecimal_Escape_Sequence @@ -854,7 +854,7 @@ fragment Hexadecimal_Escape_Sequence ; ``` -> *Note*: A character that follows a backslash character (`\`) in a *Character* must be one of the following characters: `'`, `"`, `\`, `0`, `a`, `b`, `f`, `n`, `r`, `t`, `u`, `U`, `x`, `v`. Otherwise, a compile-time error occurs. *end note* +> *Note*: A character that follows a backslash character (`\`) in a *Character* must be one of the following characters: `'`, `"`, `\`, `0`, `a`, `b``, `e`, `f`, `n`, `r`, `t`, `u`, `U`, `x`, `v`. Otherwise, a compile-time error occurs. *end note* @@ -886,6 +886,7 @@ A simple escape sequence represents a Unicode character, as described in the tab | `\0` | Null | U+0000 | | `\a` | Alert | U+0007 | | `\b` | Backspace | U+0008 | +| `\e` | ESC | U+001B | | `\f` | Form feed | U+000C | | `\n` | New line | U+000A | | `\r` | Carriage return | U+000D | From 6ea626477ac6a33ec7e22ebbb058b5b8221bf9d6 Mon Sep 17 00:00:00 2001 From: Rex Jaeschke Date: Tue, 11 Aug 2026 06:08:22 -0400 Subject: [PATCH 2/2] fix md --- standard/lexical-structure.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standard/lexical-structure.md b/standard/lexical-structure.md index fa1f01c70..e3bea980b 100644 --- a/standard/lexical-structure.md +++ b/standard/lexical-structure.md @@ -854,7 +854,7 @@ fragment Hexadecimal_Escape_Sequence ; ``` -> *Note*: A character that follows a backslash character (`\`) in a *Character* must be one of the following characters: `'`, `"`, `\`, `0`, `a`, `b``, `e`, `f`, `n`, `r`, `t`, `u`, `U`, `x`, `v`. Otherwise, a compile-time error occurs. *end note* +> *Note*: A character that follows a backslash character (`\`) in a *Character* must be one of the following characters: `'`, `"`, `\`, `0`, `a`, `b`, `e`, `f`, `n`, `r`, `t`, `u`, `U`, `x`, `v`. Otherwise, a compile-time error occurs. *end note*