Skip to content

Commit

Permalink
Fix description of \uXXXX escape sequences
Browse files Browse the repository at this point in the history
The number of hex digits to follow \u is exactly four, not up to 4.

Signed-off-by: Akos Kiss <[email protected]>
  • Loading branch information
akosthekiss authored Oct 17, 2023
1 parent 487cb28 commit ba6f294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/unicode.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static void main(String[] args) {
# Unicode Code Points in Lexer Grammars

To refer to Unicode [code points](https://en.wikipedia.org/wiki/Code_point)
in lexer grammars, use the `\u` string escape plus up to 4 hex digits. For example, to create
in lexer grammars, use the `\u` string escape plus 4 hex digits. For example, to create
a lexer rule for a single Cyrillic character by creating a range from
`U+0400` to `U+04FF`:

Expand Down

0 comments on commit ba6f294

Please sign in to comment.