Skip to content

Commit

Permalink
fix: use grammar field to reference PHP rules, regenerate with late…
Browse files Browse the repository at this point in the history
…st master, remove reset function
  • Loading branch information
amaanq committed May 5, 2024
1 parent f285e33 commit 8f22b14
Show file tree
Hide file tree
Showing 9 changed files with 960 additions and 918 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const PHP = require('tree-sitter-php/php/grammar');
const PHP = require('tree-sitter-php/php/grammar').grammar;

// PHPDoc reference: https://docs.phpdoc.org/3.0/guide/references/phpdoc/index.html
// PHPDoc tags: https://docs.phpdoc.org/3.0/guide/references/phpdoc/tags/index.html#tag-reference
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
},
"homepage": "https://github.com/claytonrcarter/tree-sitter-phpdoc#readme",
"devDependencies": {
"tree-sitter-cli": "^0.20.7",
"tree-sitter-php": "^0.21.1"
"tree-sitter-cli": "^0.22.6",
"tree-sitter-php": "^0.22.2"
},
"dependencies": {
"nan": "^2.15.0"
Expand Down
3 changes: 1 addition & 2 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,7 @@
},
"name": {
"type": "PATTERN",
"value": "[_a-zA-Z\\u00A1-\\u00ff][_a-zA-Z\\u00A1-\\u00ff\\d]*"
"value": "[_a-zA-Z\\u0080-\\u009f\\u00a1-\\u200a\\u200c-\\u205f\\u2061-\\ufefe\\uff00-\\uffff][_a-zA-Z\\u0080-\\u009f\\u00a1-\\u200a\\u200c-\\u205f\\u2061-\\ufefe\\uff00-\\uffff\\d]*"
},
"named_type": {
"type": "CHOICE",
Expand Down Expand Up @@ -2722,4 +2722,3 @@
"inline": [],
"supertypes": []
}

Loading

0 comments on commit 8f22b14

Please sign in to comment.