Bump tree-sitter-go to v0.25.0#48870
Conversation
This fixes wrong syntax highlighting with chained indexing in Go (e.g. `a[b][c] = 0` being parsed as a type instantiation expression instead of an index expression). The upstream fix (tree-sitter/tree-sitter-go#160) landed in v0.25.0 which gives index expressions a dynamic precedence of 1 over type instantiation expressions. Updated runnables.scm to account for the new `statement_list` node that wraps statements inside blocks in tree-sitter-go 0.25. Closes zed-industries#48357
|
We require contributors to sign our Contributor License Agreement, and we don't have @MohibShaikh on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
@cla-bot check |
|
We require contributors to sign our Contributor License Agreement, and we don't have @MohibShaikh on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
Fixes #48357
Summary
tree-sitter-gofrom0.23to0.25a[b][c] = 0being incorrectly parsed as a type instantiation expression instead of an index expression)runnables.scmto account for the newstatement_listnode that wraps statements inside blocks in tree-sitter-go 0.25Test plan
cargo test -p languages— all 47 tests passRelease Notes:
a[b][c]) by bumping tree-sitter-go to 0.25