Skip to content

Commit fbb6813

Browse files
committed
⬆️ tree-sitter-cli, add word token
1 parent 6086c9b commit fbb6813

File tree

5 files changed

+38228
-55946
lines changed

5 files changed

+38228
-55946
lines changed

grammar.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ module.exports = grammar({
3434
$._type_identifier,
3535
],
3636

37+
word: $ => $.identifier,
38+
3739
rules: {
3840
compilation_unit: $ => repeat($._definition),
3941

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"nan": "^2.8.0"
1414
},
1515
"devDependencies": {
16-
"tree-sitter-cli": "^0.11.0"
16+
"tree-sitter-cli": "^0.12.6"
1717
},
1818
"scripts": {
1919
"build": "tree-sitter generate && node-gyp build",

src/grammar.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "scala",
3+
"word": "identifier",
34
"rules": {
45
"compilation_unit": {
56
"type": "REPEAT",

0 commit comments

Comments
 (0)