Grammar for Godot's built-in scripting language.
npm install tree-sitter-gdscripttree-sitter-gdscript
====================
GDScript grammar for [tree-sitter][].
Note: Some commits may have been missed.
``bash`
git log --oneline --no-merges modules/gdscript
- Test grammar
1. npm run genTestnpm run test
- Test scanner
1. Edit "src/scanner.c"
1. , no need to generate.npm run genTest
- Build prebuilds
1. npm run prebuild
1. npm run genTest
- Build with node-gyp
1. npm install node-gyp
1. node-gyp rebuild
1. npm run format
- Edit
1. Write tests in corpus to express behavior.
1. Make grammar or scanner edits.
1. See above for running tests.
1. fix(#
1. Commit changes.
- If commit is an issue fix, prefix message with npm version
- List the rules changed in commit message.
- Note what rules need to be updated in [nvim-treesitter][] queries.
1. Commit generated files with the latest non-wip commit.
1. Push
- Release
1. Manually edit version in package files: CMakeLists.txt, Cargo.toml,
Makefile, pyproject.toml, tree-sitter.json
1. git push --follow-tags
1.
Note: node-gyp-build will check for binaries in both build and prebuilds`
directories.
[tree-sitter]: https://github.com/tree-sitter/tree-sitter
[nvim-treesitter]: https://github.com/nvim-treesitter/nvim-treesitter