aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries
diff options
context:
space:
mode:
authorOmar Valdez <omarantoniovaldezf2@gmail.com>2025-12-08 03:37:42 -0800
committerChristian Clason <ch.clason+github@icloud.com>2025-12-08 13:08:03 +0100
commit93537d699851b35ae8518af17ee858981f5ea6ea (patch)
tree12861d83de3f96c84fb161975561870889508f18 /runtime/queries
parentfix(ruby): highlighting for string-literal symbols (#8317) (diff)
downloadnvim-treesitter-93537d699851b35ae8518af17ee858981f5ea6ea.tar
nvim-treesitter-93537d699851b35ae8518af17ee858981f5ea6ea.tar.gz
nvim-treesitter-93537d699851b35ae8518af17ee858981f5ea6ea.tar.bz2
nvim-treesitter-93537d699851b35ae8518af17ee858981f5ea6ea.tar.lz
nvim-treesitter-93537d699851b35ae8518af17ee858981f5ea6ea.tar.xz
nvim-treesitter-93537d699851b35ae8518af17ee858981f5ea6ea.tar.zst
nvim-treesitter-93537d699851b35ae8518af17ee858981f5ea6ea.zip
feat(bash): remove unnecessary captures
- Bash does not have boolean values and the builtin `true` and `false` commands are already covered by another capture. - The grammar has a `number` node and it's already captured.
Diffstat (limited to 'runtime/queries')
-rw-r--r--runtime/queries/bash/highlights.scm6
1 files changed, 0 insertions, 6 deletions
diff --git a/runtime/queries/bash/highlights.scm b/runtime/queries/bash/highlights.scm
index 6fe370011..118ca6bd2 100644
--- a/runtime/queries/bash/highlights.scm
+++ b/runtime/queries/bash/highlights.scm
@@ -117,9 +117,6 @@
"SIGRTMAX-12" "SIGRTMAX-11" "SIGRTMAX-10" "SIGRTMAX-9" "SIGRTMAX-8" "SIGRTMAX-7" "SIGRTMAX-6"
"SIGRTMAX-5" "SIGRTMAX-4" "SIGRTMAX-3" "SIGRTMAX-2" "SIGRTMAX-1" "SIGRTMAX"))
-((word) @boolean
- (#any-of? @boolean "true" "false"))
-
(comment) @comment @spell
(test_operator) @operator
@@ -190,9 +187,6 @@
(number) @number
-((word) @number
- (#lua-match? @number "^[0-9]+$"))
-
(file_redirect
(word) @string.special.path)