aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortaekwombo <88032359+taekwombo@users.noreply.github.com>2022-11-24 08:23:09 +0100
committerChristian Clason <christian.clason@uni-due.de>2022-11-24 09:37:39 +0100
commitfb4058448a61ee52e18cf2d2a12de3d241b33201 (patch)
tree2b867faf59beb400a6f6289bab6875ad9966c912
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-fb4058448a61ee52e18cf2d2a12de3d241b33201.tar
nvim-treesitter-fb4058448a61ee52e18cf2d2a12de3d241b33201.tar.gz
nvim-treesitter-fb4058448a61ee52e18cf2d2a12de3d241b33201.tar.bz2
nvim-treesitter-fb4058448a61ee52e18cf2d2a12de3d241b33201.tar.lz
nvim-treesitter-fb4058448a61ee52e18cf2d2a12de3d241b33201.tar.xz
nvim-treesitter-fb4058448a61ee52e18cf2d2a12de3d241b33201.tar.zst
nvim-treesitter-fb4058448a61ee52e18cf2d2a12de3d241b33201.zip
fix(fish): "test" command capture name
-rw-r--r--queries/fish/highlights.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/fish/highlights.scm b/queries/fish/highlights.scm
index 838251201..505726819 100644
--- a/queries/fish/highlights.scm
+++ b/queries/fish/highlights.scm
@@ -13,9 +13,9 @@
(stream_redirect)
] @operator
-; match operators of test command
+;; match operators of test command
(command
- name: (word) @function (#match? @function "^test$")
+ name: (word) @function.builtin (#match? @function.builtin "^test$")
argument: (word) @operator (#match? @operator "^(!?\\=|-[a-zA-Z]+)$"))
;; match operators of [ command