Skip to content

Commit

Permalink
fix: parsing of multiple unicode escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
hvitved committed May 21, 2024
1 parent 788a63c commit b41dc0f
Show file tree
Hide file tree
Showing 4 changed files with 853 additions and 255 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ module.exports = grammar({
/x[0-9a-fA-F]{1,2}/, // hex code
/[0-7]{1,3}/, // octal
/u[0-9a-fA-F]{4}/, // single unicode
/u\{[0-9a-fA-F]+\}/, // multiple unicode
/u\{[0-9a-fA-F ]+\}/, // multiple unicode
),
)),

Expand Down
2 changes: 1 addition & 1 deletion src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions src/parser.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b41dc0f

Please sign in to comment.