Skip to content

Commit c5ed175

Browse files
committed
fix: Allow octal escapes with 1 to 3 digits
1 parent 36515d5 commit c5ed175

File tree

7 files changed

+4448
-6832
lines changed

7 files changed

+4448
-6832
lines changed

bindings/rust/build.rs

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grammar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ module.exports = grammar({
11041104
/u[a-fA-F\d]{4}/,
11051105
/U[a-fA-F\d]{8}/,
11061106
/x[a-fA-F\d]{2}/,
1107-
/\d{3}/,
1107+
/\d{1,3}/,
11081108
/\r?\n/,
11091109
/['"abfrntv\\]/,
11101110
/N\{[^}]+\}/,

src/grammar.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)