Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions standard/lexical-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -846,15 +846,15 @@ 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
: '\\x' Hex_Digit Hex_Digit? Hex_Digit? Hex_Digit?
;
```

> *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*
<!-- markdownlint-disable MD028 -->

<!-- markdownlint-enable MD028 -->
Expand Down Expand Up @@ -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 |
Expand Down
Loading