fix(fish): "test" command capture name

This commit is contained in:
taekwombo 2022-11-24 08:23:09 +01:00 committed by Christian Clason
parent e2021ba943
commit fb4058448a

View file

@ -13,9 +13,9 @@
(stream_redirect) (stream_redirect)
] @operator ] @operator
; match operators of test command ;; match operators of test command
(command (command
name: (word) @function (#match? @function "^test$") name: (word) @function.builtin (#match? @function.builtin "^test$")
argument: (word) @operator (#match? @operator "^(!?\\=|-[a-zA-Z]+)$")) argument: (word) @operator (#match? @operator "^(!?\\=|-[a-zA-Z]+)$"))
;; match operators of [ command ;; match operators of [ command