mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
(#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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue