From a83f2d1417cc7775409413903c04d82c48fbbbf8 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 2 May 2025 17:19:08 +0200 Subject: [PATCH] feat(vim): update parser and queries * add support for `:substitute` command * add support for `=` lua chunks --- lua/nvim-treesitter/parsers.lua | 2 +- runtime/queries/vim/highlights.scm | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index a3efc076c..338cc0017 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -2501,7 +2501,7 @@ return { }, vim = { install_info = { - revision = '0f31cb98e5c0cb3707e097bf95a04c0c2aac573d', + revision = '054c4beaf7b95b52cb20b138bfd8b6fd6ba561a7', url = 'https://github.com/tree-sitter-grammars/tree-sitter-vim', }, maintainers = { '@clason' }, diff --git a/runtime/queries/vim/highlights.scm b/runtime/queries/vim/highlights.scm index df7b3cf48..20a044a60 100644 --- a/runtime/queries/vim/highlights.scm +++ b/runtime/queries/vim/highlights.scm @@ -127,6 +127,7 @@ "eval" "sign" "abort" + "substitute" ] @keyword (map_statement @@ -313,6 +314,9 @@ (binary_operation "." @operator) +(lua_statement + "=" @keyword) + ; Punctuation [ "("