aboutsummaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorYorick Peterse <yorick@yorickpeterse.com>2025-10-07 02:25:25 +0200
committerChristian Clason <ch.clason+github@icloud.com>2025-10-07 10:00:15 +0200
commit3ab4f2d2d20be55874e2eb575145c6928d7d7d0e (patch)
tree84e790624b8b8d306fa63c748c986a0d141f940d /runtime
parentfeat(nu)!: update parser and queries (diff)
downloadnvim-treesitter-3ab4f2d2d20be55874e2eb575145c6928d7d7d0e.tar
nvim-treesitter-3ab4f2d2d20be55874e2eb575145c6928d7d7d0e.tar.gz
nvim-treesitter-3ab4f2d2d20be55874e2eb575145c6928d7d7d0e.tar.bz2
nvim-treesitter-3ab4f2d2d20be55874e2eb575145c6928d7d7d0e.tar.lz
nvim-treesitter-3ab4f2d2d20be55874e2eb575145c6928d7d7d0e.tar.xz
nvim-treesitter-3ab4f2d2d20be55874e2eb575145c6928d7d7d0e.tar.zst
nvim-treesitter-3ab4f2d2d20be55874e2eb575145c6928d7d7d0e.zip
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.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/inko/locals.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/queries/inko/locals.scm b/runtime/queries/inko/locals.scm
index b69681cd1..2d61c2c5d 100644
--- a/runtime/queries/inko/locals.scm
+++ b/runtime/queries/inko/locals.scm
@@ -13,7 +13,7 @@
(argument
name: _ @local.definition.parameter)
-(define_variable
+(identifier_pattern
name: _ @local.definition.var)
(define_constant