aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/nix/highlights.scm24
1 files changed, 12 insertions, 12 deletions
diff --git a/queries/nix/highlights.scm b/queries/nix/highlights.scm
index 5ed5aaa96..4ee2da989 100644
--- a/queries/nix/highlights.scm
+++ b/queries/nix/highlights.scm
@@ -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