From 9c14a43d1f63bf70c13a007f5164f434f21cf976 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 eeae08e75..8d165c411 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 35227f114e26635a80f82d9b8b6bf8e260261b1c 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 8d165c411..36523024b 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*