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 e8b5835 commit f93fd28
Show file tree
Hide file tree
Showing 6 changed files with 19,521 additions and 19,168 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,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]+\}/,
))),

bool: _ => choice('true', 'false'),
Expand Down
25 changes: 2 additions & 23 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -3632,7 +3632,7 @@
},
{
"type": "PATTERN",
"value": "u{[0-9a-fA-F]+}"
"value": "u\\{[0-9a-fA-F]+\\}"
}
]
}
Expand Down Expand Up @@ -3734,26 +3734,5 @@
"supertypes": [
"expression",
"primary_expression"
],
"PREC": {
"PAREN": -1,
"ASSIGN": 1,
"TERNARY": 2,
"LOGICAL_OR": 3,
"LOGICAL_AND": 4,
"IN": 4,
"INCLUSIVE_OR": 5,
"EXCLUSIVE_OR": 6,
"BITWISE_AND": 7,
"EQUALITY": 8,
"COMPARISON": 9,
"INSTANCEOF": 9,
"SHIFT": 10,
"ADDITIVE": 11,
"MULTIPLICATIVE": 12,
"UNARY": 13,
"CALL": 14,
"MEMBER": 15
}
]
}

Loading

0 comments on commit f93fd28

Please sign in to comment.