GDScript grammar for tree-sitter.
Note: Some commits may have been missed.
git log --oneline --no-merges modules/gdscript- Test grammar
npm run genTest
- Test scanner
- Edit "src/scanner.c"
npm run test, no need to generate.
- Build prebuilds
npm run genTestnpm run prebuild
- Build with node-gyp
npm run genTestnpm install node-gypnode-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 with the latest non-wip commit.
- Push
- Release
- Manually edit version in package files: CMakeLists.txt, Cargo.toml, Makefile, pyproject.toml, tree-sitter.json
npm version --git-tag-version false <major, minor, patch>git tag -a v<version>git push && git push --tagscargo packagecargo publish
Note: node-gyp-build will check for binaries in both build and prebuilds directories.