aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-03-17 13:11:22 +0100
committerChristian Clason <c.clason@uni-graz.at>2024-03-19 09:41:16 +0100
commit20dcbaaaf8801163aca8592866086b552bc93f29 (patch)
tree8270595eebe83889b4fe172b3b172e422222df94
parentaca4ad430bdcc6dadc5387ab80e26b4140b42337 (diff)
downloadrneovim-20dcbaaaf8801163aca8592866086b552bc93f29.tar.gz
rneovim-20dcbaaaf8801163aca8592866086b552bc93f29.tar.bz2
rneovim-20dcbaaaf8801163aca8592866086b552bc93f29.zip
feat(treesitter): update Vim parser and queries to v0.4.0
-rw-r--r--cmake.deps/deps.txt4
-rw-r--r--runtime/queries/vim/highlights.scm2
-rw-r--r--runtime/queries/vim/injections.scm4
3 files changed, 7 insertions, 3 deletions
diff --git a/cmake.deps/deps.txt b/cmake.deps/deps.txt
index 3b17e41362..b56ba3c1c8 100644
--- a/cmake.deps/deps.txt
+++ b/cmake.deps/deps.txt
@@ -45,8 +45,8 @@ TREESITTER_C_URL https://github.com/tree-sitter/tree-sitter-c/archive/v0.21.0.ta
TREESITTER_C_SHA256 6f0f5d1b71cf8ffd8a37fb638c6022fa1245bd630150b538547d52128ce0ea7e
TREESITTER_LUA_URL https://github.com/tree-sitter-grammars/tree-sitter-lua/archive/v0.1.0.tar.gz
TREESITTER_LUA_SHA256 230cfcbfa74ed1f7b8149e9a1f34c2efc4c589a71fe0f5dc8560622f8020d722
-TREESITTER_VIM_URL https://github.com/neovim/tree-sitter-vim/archive/v0.3.0.tar.gz
-TREESITTER_VIM_SHA256 403acec3efb7cdb18ff3d68640fc823502a4ffcdfbb71cec3f98aa786c21cbe2
+TREESITTER_VIM_URL https://github.com/neovim/tree-sitter-vim/archive/v0.4.0.tar.gz
+TREESITTER_VIM_SHA256 9f856f8b4a10ab43348550fa2d3cb2846ae3d8e60f45887200549c051c66f9d5
TREESITTER_VIMDOC_URL https://github.com/neovim/tree-sitter-vimdoc/archive/v2.2.0.tar.gz
TREESITTER_VIMDOC_SHA256 2cd898245d28bb606b05c022f04077031381d998faa3c6825c5ca01b7c89e2ae
TREESITTER_QUERY_URL https://github.com/tree-sitter-grammars/tree-sitter-query/archive/v0.1.0.tar.gz
diff --git a/runtime/queries/vim/highlights.scm b/runtime/queries/vim/highlights.scm
index 54832ffa56..cc51282a71 100644
--- a/runtime/queries/vim/highlights.scm
+++ b/runtime/queries/vim/highlights.scm
@@ -132,6 +132,8 @@
(map_statement
cmd: _ @keyword)
+(keycode) @character.special
+
(command_name) @function.macro
; Filetype command
diff --git a/runtime/queries/vim/injections.scm b/runtime/queries/vim/injections.scm
index 16ec57ca99..5feb832ec4 100644
--- a/runtime/queries/vim/injections.scm
+++ b/runtime/queries/vim/injections.scm
@@ -28,5 +28,7 @@
((set_item
option: (option_name) @_option
value: (set_value) @injection.content)
- (#any-of? @_option "includeexpr" "inex" "printexpr" "pexpr" "formatexpr" "fex" "indentexpr" "inde" "foldtext" "fdt" "foldexpr" "fde" "diffexpr" "dex" "patchexpr" "pex" "charconvert" "ccv")
+ (#any-of? @_option
+ "includeexpr" "inex" "printexpr" "pexpr" "formatexpr" "fex" "indentexpr" "inde" "foldtext" "fdt"
+ "foldexpr" "fde" "diffexpr" "dex" "patchexpr" "pex" "charconvert" "ccv")
(#set! injection.language "vim"))