From 3ab4f2d2d20be55874e2eb575145c6928d7d7d0e Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Tue, 7 Oct 2025 02:25:25 +0200 Subject: 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. --- lua/nvim-treesitter/parsers.lua | 2 +- runtime/queries/inko/locals.scm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 72d607836..26f8ca2af 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -1041,7 +1041,7 @@ return { }, inko = { install_info = { - revision = '080e957d94b330e3867f063b148a8050b0888f4e', + revision = '9d7ed4f6c0ea2a8f846f3bb00e33ab21ec9ca379', url = 'https://github.com/inko-lang/tree-sitter-inko', }, maintainers = { '@yorickpeterse' }, 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 -- cgit v1.2.3-70-g09d2