summaryrefslogtreecommitdiff
path: root/queries/bash
diff options
context:
space:
mode:
authorDavid Hotham <david.hotham@metaswitch.com>2020-12-24 19:48:02 +0000
committerThomas Vigouroux <tomvig38@gmail.com>2020-12-25 15:56:06 +0100
commit35dec1ceeb9996aa3acb24b35305425daf368d75 (patch)
tree5ef9cbdbd6636b5fdf92ebecc8fa85b406c2359c /queries/bash
parent0c1904902370f63c12f7658bd1e16046dc9e4a09 (diff)
remove duplication of query for number
Diffstat (limited to 'queries/bash')
-rw-r--r--queries/bash/highlights.scm8
1 files changed, 2 insertions, 6 deletions
diff --git a/queries/bash/highlights.scm b/queries/bash/highlights.scm
index 709ccd6a..7d83af03 100644
--- a/queries/bash/highlights.scm
+++ b/queries/bash/highlights.scm
@@ -76,9 +76,6 @@
((word) @boolean
(#match? @boolean "^(true|false)$"))
-((word) @number
- (#match? @number "^[0-9]+$"))
-
(comment) @comment
(test_operator) @string
@@ -100,9 +97,8 @@
(concatenation (word) @parameter)
])
-(command
- argument: ((word) @number
- (#match? @number "^[0-9]+$")))
+((word) @number
+ (#match? @number "^[0-9]+$"))
(file_redirect
descriptor: (file_descriptor) @operator