remove duplication of query for number

This commit is contained in:
David Hotham 2020-12-24 19:48:02 +00:00 committed by Thomas Vigouroux
parent 0c19049023
commit 35dec1ceeb

View file

@ -76,9 +76,6 @@
((word) @boolean ((word) @boolean
(#match? @boolean "^(true|false)$")) (#match? @boolean "^(true|false)$"))
((word) @number
(#match? @number "^[0-9]+$"))
(comment) @comment (comment) @comment
(test_operator) @string (test_operator) @string
@ -100,9 +97,8 @@
(concatenation (word) @parameter) (concatenation (word) @parameter)
]) ])
(command ((word) @number
argument: ((word) @number (#match? @number "^[0-9]+$"))
(#match? @number "^[0-9]+$")))
(file_redirect (file_redirect
descriptor: (file_descriptor) @operator descriptor: (file_descriptor) @operator