From f5980ab915a21742dea78a0b61c85f242808afb2 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 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 21570b74-c6f5-4fc5-ab6d-7546918d6ddb --- 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 aa79fa5f8..3aeb57783 100644 --- a/standard/lexical-structure.md +++ b/standard/lexical-structure.md @@ -864,7 +864,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 @@ -872,7 +872,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* @@ -904,6 +904,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 ca9a20dfdc58106f8b15d32eb5c0ebb58d73d8be 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 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 21570b74-c6f5-4fc5-ab6d-7546918d6ddb --- 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 3aeb57783..0ba8bd4b0 100644 --- a/standard/lexical-structure.md +++ b/standard/lexical-structure.md @@ -872,7 +872,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*