Skip to content

Commit 2039d54

Browse files
committed
.
1 parent 49a8aeb commit 2039d54

File tree

7 files changed

+724
-601
lines changed

7 files changed

+724
-601
lines changed

bun.lockb

542 Bytes
Binary file not shown.

grammar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ module.exports = grammar({
115115

116116
_pop: (_) => seq("POP"),
117117

118-
builtin: (_) => choice("ANY", "SOI", "EOI", "NEWLINE"),
118+
builtin: (_) =>
119+
choice("ANY", "DROP", "EOI", "NEWLINE", "PEEK_ALL", "POP_ALL", "SOI"),
119120

120121
const: ($) => CONST,
121122

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"author": "Jason Lee <huacnlee@gmail.com>",
1313
"type": "commonjs",
1414
"devDependencies": {
15-
"node-gyp": ">=7 <11",
15+
"node-gyp": "^10.3.1",
1616
"tree-sitter-cli": "^0.20.8"
1717
},
1818
"dependencies": {
19-
"nan": "^2.17.0"
19+
"nan": "^2.23.0"
2020
},
2121
"scripts": {
2222
"build": "tree-sitter generate && node-gyp build",

queries/highlights.scm

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,13 @@
4949
"ANY"
5050
"DROP"
5151
"EOI"
52+
"NEWLINE"
5253
"PEEK"
5354
"PEEK_ALL"
5455
"POP"
5556
"POP_ALL"
57+
"PUSH"
5658
"SOI"
57-
"ASCII_DIGIT"
58-
"ASCII_NONZERO_DIGIT"
59-
"ASCII_BIN_DIGIT"
60-
"ASCII_OCT_DIGIT"
61-
"ASCII_HEX_DIGIT"
62-
"ASCII_ALPHA_LOWER"
63-
"ASCII_ALPHA_UPPER"
64-
"ASCII_ALPHA"
65-
"ASCII_ALPHANUMERIC"
66-
"ASCII"
67-
"NEWLINE"
6859
] @keyword
6960

7061
[

src/grammar.json

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)