Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/koka/highlights.scm')
-rw-r--r--runtime/queries/koka/highlights.scm90
1 files changed, 45 insertions, 45 deletions
diff --git a/runtime/queries/koka/highlights.scm b/runtime/queries/koka/highlights.scm
index 1ef40927..cec2881f 100644
--- a/runtime/queries/koka/highlights.scm
+++ b/runtime/queries/koka/highlights.scm
@@ -1,3 +1,48 @@
+; Identifiers
+
+(qconid) @namespace
+
+(qidop) @namespace
+
+(varid) @variable
+
+(conid) @constructor
+
+(puredecl
+ (binder
+ (identifier
+ [(varid) (idop)] @constant)))
+
+; TODO: Highlight vars differently once helix has an appropriate highlight query
+; for that purpose.
+
+(pparameter
+ (pattern
+ (identifier
+ (varid) @variable.parameter)))
+
+(paramid
+ (identifier
+ (varid) @variable.parameter))
+
+(typedecl
+ "effect"
+ (varid) @type)
+
+(typeid
+ (varid) @type)
+
+(tbinder
+ (varid) @type)
+
+(typecon
+ (varid) @type)
+
+(qvarid
+ (qid) @namespace)
+
+(modulepath (varid) @namespace)
+
; Function calls
(appexpr
@@ -55,51 +100,6 @@
(identifier
[(varid) (idop)] @function))
-; Identifiers
-
-(puredecl
- (binder
- (identifier
- [(varid) (idop)] @constant)))
-
-; TODO: Highlight vars differently once helix has an appropriate highlight query
-; for that purpose.
-
-(pparameter
- (pattern
- (identifier
- (varid) @variable.parameter)))
-
-(paramid
- (identifier
- (varid) @variable.parameter))
-
-(typedecl
- "effect"
- (varid) @type)
-
-(typeid
- (varid) @type)
-
-(tbinder
- (varid) @type)
-
-(typecon
- (varid) @type)
-
-(qvarid
- (qid) @namespace)
-
-(modulepath (varid) @namespace)
-
-(qconid) @namespace
-
-(qidop) @namespace
-
-(varid) @variable
-
-(conid) @constructor
-
; Operators
[