commit f3ee2440c781e978777d9369a96d1ae32e12eb8f
parent bd10f781b84254739e37dae90b5eba823fde20b7
Author: Christian Clason <c.clason@uni-graz.at>
Date: Wed, 31 Dec 2025 13:57:28 +0100
build(deps): bump tree-sitter-lua to v0.4.1
Diffstat:
4 files changed, 16 insertions(+), 32 deletions(-)
diff --git a/build.zig.zon b/build.zig.zon
@@ -49,8 +49,8 @@
.hash = "N-V-__8AABcZUwBZelO8MiLRwuLD1Wk34qHHbXtS4UW3Khys",
},
.treesitter_lua = .{
- .url = "git+https://github.com/tree-sitter-grammars/tree-sitter-lua?ref=v0.4.0#4569d1c361129e71a205b94a05e158bd71b1709f",
- .hash = "N-V-__8AAEF5CABqSL9zqc03aQsT6Nni54ZCcL98pnuDL2D3",
+ .url = "git+https://github.com/tree-sitter-grammars/tree-sitter-lua?ref=v0.4.1#816840c592ab973500ae9750763c707b447e7fef",
+ .hash = "N-V-__8AAHCmCAAf-5sa_C1N5Ts8B7V-vTKqUEMJZVnNkq_y",
},
.treesitter_vim = .{
.url = "git+https://github.com/tree-sitter-grammars/tree-sitter-vim?ref=v0.7.0#3dd4747082d1b717b8978211c06ef7b6cd16125b",
diff --git a/cmake.deps/deps.txt b/cmake.deps/deps.txt
@@ -36,8 +36,8 @@ UTF8PROC_SHA256 abfed50b6d4da51345713661370290f4f4747263ee73dc90356299dfc7990c78
TREESITTER_C_URL https://github.com/tree-sitter/tree-sitter-c/archive/v0.24.1.tar.gz
TREESITTER_C_SHA256 25dd4bb3dec770769a407e0fc803f424ce02c494a56ce95fedc525316dcf9b48
-TREESITTER_LUA_URL https://github.com/tree-sitter-grammars/tree-sitter-lua/archive/v0.4.0.tar.gz
-TREESITTER_LUA_SHA256 b0977aced4a63bb75f26725787e047b8f5f4a092712c840ea7070765d4049559
+TREESITTER_LUA_URL https://github.com/tree-sitter-grammars/tree-sitter-lua/archive/v0.4.1.tar.gz
+TREESITTER_LUA_SHA256 cef44b8773bde69d427b5e50ca95e417c86c0be91caa37a6782c90d6f529da70
TREESITTER_VIM_URL https://github.com/tree-sitter-grammars/tree-sitter-vim/archive/v0.7.0.tar.gz
TREESITTER_VIM_SHA256 44eabc31127c4feacda19f2a05a5788272128ff561ce01093a8b7a53aadcc7b2
TREESITTER_VIMDOC_URL https://github.com/neovim/tree-sitter-vimdoc/archive/v4.1.0.tar.gz
diff --git a/runtime/queries/lua/highlights.scm b/runtime/queries/lua/highlights.scm
@@ -70,36 +70,20 @@
] @keyword.function)
; Operators
+(binary_expression
+ operator: _ @operator)
+
+(unary_expression
+ operator: _ @operator)
+
+"=" @operator
+
[
"and"
"not"
"or"
] @keyword.operator
-[
- "+"
- "-"
- "*"
- "/"
- "%"
- "^"
- "#"
- "=="
- "~="
- "<="
- ">="
- "<"
- ">"
- "="
- "&"
- "~"
- "|"
- "<<"
- ">>"
- "//"
- ".."
-] @operator
-
; Punctuations
[
";"
diff --git a/test/functional/plugin/tohtml_spec.lua b/test/functional/plugin/tohtml_spec.lua
@@ -119,10 +119,10 @@ end
---@param screen test.functional.ui.screen
---@param func function?
local function run_tohtml_and_assert(screen, func)
- exec('norm! ggO-;')
- screen:expect({ any = vim.pesc('-^;') })
+ exec('norm! ggO--;')
+ screen:expect({ any = vim.pesc('--^;') })
exec('norm! :\rh')
- screen:expect({ any = vim.pesc('^-;') })
+ screen:expect({ any = vim.pesc('-^-;') })
local expected = screen:get_snapshot()
do
(func or exec)('TOhtml')
@@ -131,7 +131,7 @@ local function run_tohtml_and_assert(screen, func)
html_syntax_match()
html_to_extmarks()
exec('norm! gg0f;')
- screen:expect({ any = vim.pesc('-^;') })
+ screen:expect({ any = vim.pesc('--^;') })
exec('norm! :\rh')
screen:expect({ grid = expected.grid, attr_ids = expected.attr_ids })
end