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 16f930b commit 73ff874
Show file tree
Hide file tree
Showing 6 changed files with 1,424 additions and 1,066 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Expand Up @@ -745,7 +745,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
17 changes: 2 additions & 15 deletions src/grammar.json
Expand Up @@ -5764,7 +5764,7 @@
},
{
"type": "PATTERN",
"value": "u{[0-9a-fA-F]+}"
"value": "u\\{[0-9a-fA-F]+\\}"
},
{
"type": "PATTERN",
Expand Down Expand Up @@ -5878,18 +5878,5 @@
"literal",
"statement",
"type"
],
"PREC": {
"LAMBDA": -2,
"PARENTHESES": -1,
"ASSIGNMENT": 1,
"BINARY": 2,
"CAST": 3,
"UNARY": 4,
"CALL": 5,
"MEMBER": 6,
"TYPEARGS": 7,
"ARRAY_LITERAL": 8
}
]
}

0 comments on commit 73ff874

Please sign in to comment.