tree-sitter-gdscript
tree-sitter-gdscript copied to clipboard
Tree sitter grammar for Godot's GDScript
tree-sitter-gdscript
GDScript grammar for tree-sitter.
Latest Godot Commit Syntactically Synced
Note: Some commits may have been missed.
git log --oneline --no-merges modules/gdscript
How To
- Test grammar
-
npm run genTest
-
- Test scanner
- Edit "src/scanner.c"
-
npm run test
, no need to generate.
- Build prebuilds
-
npm run genTest
-
npm run prebuild
-
- Build with node-gyp
-
npm run genTest
-
npm install node-gyp
-
node-gyp rebuild
-
- Edit
- Write tests in corpus to express behavior.
- Make grammar or scanner edits.
- See above for running tests.
-
npm run format
- Commit changes.
- If commit is an issue fix, prefix message with
fix(#<issue-number>):
- List the rules changed in commit message.
- Note what rules need to be updated in nvim-treesitter queries.
- If commit is an issue fix, prefix message with
- Commit generated files separately.
- With commit message: "tree-sitter generate"
- Push
- Release
-
npm version <major, minor, patch> -m "<> version bump"
-
git push --follow-tags
-
Note: node-gyp-build
will check for binaries in both build
and prebuilds
directories.