mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -04:00
remove duplication of query for number
This commit is contained in:
parent
0c19049023
commit
35dec1ceeb
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue