Content-Length: 312862 | pFad | https://github.com/PrestonKnopp/tree-sitter-gdscript

45 GitHub - PrestonKnopp/tree-sitter-gdscript: Tree sitter grammar for Godot's GDScript · GitHub
Skip to content

PrestonKnopp/tree-sitter-gdscript

Repository files navigation

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

6ae54fd787

How To

  • Test grammar
    1. npm run genTest
  • Test scanner
    1. Edit "src/scanner.c"
    2. npm run test, no need to generate.
  • Build prebuilds
    1. npm run genTest
    2. npm run prebuild
  • Build with node-gyp
    1. npm run genTest
    2. npm install node-gyp
    3. node-gyp rebuild
  • Edit
    1. Write tests in corpus to express behavior.
    2. Make grammar or scanner edits.
    3. See above for running tests.
    4. npm run format
    5. 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.
    6. Commit generated files with the latest non-wip commit.
    7. Push
  • Release
    1. Manually edit version in package files: CMakeLists.txt, Cargo.toml, Makefile, pyproject.toml, tree-sitter.json
    2. npm version --git-tag-version false <major, minor, patch>
    3. git tag -a v<version>
    4. git push && git push --tags
    5. cargo package
    6. cargo publish

Note: node-gyp-build will check for binaries in both build and prebuilds directories.

About

Tree sitter grammar for Godot's GDScript

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/PrestonKnopp/tree-sitter-gdscript

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy