Fix unary - precedence

This commit is contained in:
leo60228 2020-11-19 12:47:10 -05:00 committed by Thomas Vigouroux
parent 5a25817884
commit a0e14a5672

View file

@ -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