Added Go based automation to update treesitter source. Also bumped to v0.20.8 #138
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Wrote a Go program (lives in
_automation/treesitter_updater
) that automates the process of downloading, extracting, and processing the specified version of the Tree Sitter library. It's designed to simplify the updating of the upstream Tree Sitter library for use in this project.Usage
If you want to change the version of the treesitter library that is retrieved, update the
sitterVersion
variable inmain.go
.Note, you must run this script from within the
_automation/treesitter_updater
directory because it makes an assumption that the final destination for the .C and .H files is 2 directories up from it's current directory.cd _automation/treesitter_updater go run main.go
The success / failure will be printed to stdout, as well as a list of (1) new files and (2) replaced files.
I used this automation to bump the version of treesitter to v0.20.8.
This updated version also resolves this issue: #136