Skip to content

Commit 12f6d80

Browse files
committed
fix: escape braces in regex
1 parent 51aed72 commit 12f6d80

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ module.exports = grammar({
983983
/[0-7]{1,3}/,
984984
/x[0-9a-fA-F]{2}/,
985985
/u[0-9a-fA-F]{4}/,
986-
/u{[0-9a-fA-F]+}/,
986+
/u\{[0-9a-fA-F]+\}/,
987987
/[\r?][\n\u2028\u2029]/,
988988
),
989989
)),

src/grammar.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/parser.c

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)