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
(#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