Skip to content

Commit a9109f5

Browse files
committed
Escape curly braces in regular expressions
1 parent 2c2cce9 commit a9109f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grammar.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ module.exports = grammar({
306306
/[^ux]/,
307307
// Hex byte
308308
/x[0-9a-fA-F]{1,2}/,
309-
/x{[0-9a-fA-F]+}/,
309+
/x\{[0-9a-fA-F]+\}/,
310310
// Unicode code point
311-
/u{[0-9a-fA-F]+}/,
311+
/u\{[0-9a-fA-F]+\}/,
312312
/u[0-9a-fA-F]{4}/
313313
)
314314
)

0 commit comments

Comments
 (0)