mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
feat(inko): update parser for let pattern matching
Commit 9d7ed4 of the Inko tree-sitter grammar introduces support for pattern matching in `let` expressions. This requires some corresponding changes to the "local" queries to correctly define local variables. This is done by simply defining locals for all "identifier_pattern" nodes, instead of only doing this for "define_variable" nodes.
This commit is contained in:
parent
0594d1ba65
commit
3ab4f2d2d2
2 changed files with 2 additions and 2 deletions
|
|
@ -1041,7 +1041,7 @@ return {
|
||||||
},
|
},
|
||||||
inko = {
|
inko = {
|
||||||
install_info = {
|
install_info = {
|
||||||
revision = '080e957d94b330e3867f063b148a8050b0888f4e',
|
revision = '9d7ed4f6c0ea2a8f846f3bb00e33ab21ec9ca379',
|
||||||
url = 'https://github.com/inko-lang/tree-sitter-inko',
|
url = 'https://github.com/inko-lang/tree-sitter-inko',
|
||||||
},
|
},
|
||||||
maintainers = { '@yorickpeterse' },
|
maintainers = { '@yorickpeterse' },
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
(argument
|
(argument
|
||||||
name: _ @local.definition.parameter)
|
name: _ @local.definition.parameter)
|
||||||
|
|
||||||
(define_variable
|
(identifier_pattern
|
||||||
name: _ @local.definition.var)
|
name: _ @local.definition.var)
|
||||||
|
|
||||||
(define_constant
|
(define_constant
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue