Skip to content

Commit

Permalink
fix(grammar): adapt to upstream regex change
Browse files Browse the repository at this point in the history
  • Loading branch information
clason committed Apr 20, 2024
1 parent 300f6a4 commit 6b7eb09
Show file tree
Hide file tree
Showing 6 changed files with 819 additions and 448 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ module.exports = grammar({
/[0-7]{1,3}/,
/x[0-9a-fA-F]{2}/,
/u[0-9a-fA-F]{4}/,
/u{[0-9a-fA-F]+}/,
/u\{[0-9a-fA-F]+\}/,
/U[0-9a-fA-F]{8}/,
))),

Expand Down
3 changes: 1 addition & 2 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -2285,7 +2285,7 @@
},
{
"type": "PATTERN",
"value": "u{[0-9a-fA-F]+}"
"value": "u\\{[0-9a-fA-F]+\\}"
},
{
"type": "PATTERN",
Expand Down Expand Up @@ -2419,4 +2419,3 @@
"type"
]
}

Loading

0 comments on commit 6b7eb09

Please sign in to comment.