mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Fix unary - precedence
This commit is contained in:
parent
5a25817884
commit
a0e14a5672
1 changed files with 12 additions and 12 deletions
|
|
@ -79,18 +79,6 @@
|
|||
(attrset (bind . (attrpath (identifier) @field)))
|
||||
(rec_attrset (bind . (attrpath (identifier) @field)))
|
||||
|
||||
; integers, also highlight a unary -
|
||||
[
|
||||
(unary "-" (integer))
|
||||
(integer)
|
||||
] @number
|
||||
|
||||
; floats, also highlight a unary -
|
||||
[
|
||||
(unary "-" (float))
|
||||
(float)
|
||||
] @float
|
||||
|
||||
; unary operators
|
||||
(unary "-" @operator)
|
||||
(unary "!" @operator)
|
||||
|
|
@ -112,3 +100,15 @@
|
|||
(binary "&&" @operator)
|
||||
(binary "||" @operator)
|
||||
(binary "->" @operator)
|
||||
|
||||
; integers, also highlight a unary -
|
||||
[
|
||||
(unary "-" (integer))
|
||||
(integer)
|
||||
] @number
|
||||
|
||||
; floats, also highlight a unary -
|
||||
[
|
||||
(unary "-" (float))
|
||||
(float)
|
||||
] @float
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue