Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/yuck/highlights.scm')
-rw-r--r--runtime/queries/yuck/highlights.scm20
1 files changed, 9 insertions, 11 deletions
diff --git a/runtime/queries/yuck/highlights.scm b/runtime/queries/yuck/highlights.scm
index 70de4cbe..74d04fca 100644
--- a/runtime/queries/yuck/highlights.scm
+++ b/runtime/queries/yuck/highlights.scm
@@ -1,3 +1,6 @@
+(ident) @variable
+(index) @variable
+
; Errors
(ERROR) @error
@@ -64,6 +67,12 @@
(function_call
name: (ident) @function)
+; Tags
+
+; TODO apply to every symbol in list? I think it should probably only be applied to the first child of the list
+(list
+ (symbol) @tag)
+
; Variables
(ident) @variable
@@ -94,14 +103,3 @@
(loop_widget . "for" @keyword.control.repeat . (symbol) @variable . "in" @keyword.operator . (symbol) @variable)
(loop_widget . "for" @keyword.control.repeat . (symbol) @variable . "in" @keyword.operator)
-
-; Tags
-
-; TODO apply to every symbol in list? I think it should probably only be applied to the first child of the list
-(list
- (symbol) @tag)
-
-; Other stuff that has not been caught by the previous queries yet
-
-(ident) @variable
-(index) @variable