Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/koto/highlights.scm')
-rw-r--r--runtime/queries/koto/highlights.scm36
1 files changed, 16 insertions, 20 deletions
diff --git a/runtime/queries/koto/highlights.scm b/runtime/queries/koto/highlights.scm
index bdc01440..61f97123 100644
--- a/runtime/queries/koto/highlights.scm
+++ b/runtime/queries/koto/highlights.scm
@@ -5,13 +5,11 @@
"*"
"/"
"%"
- "^"
"+="
"-="
"*="
"/="
"%="
- "^="
"=="
"!="
"<"
@@ -72,6 +70,9 @@
"as"
] @keyword.control.import
+(string (interpolation ("{") @punctuation.special))
+(string (interpolation ("}") @punctuation.special))
+
[
"("
")"
@@ -82,36 +83,26 @@
"|"
] @punctuation.bracket
-(string (interpolation ["{" "}"] @punctuation.special))
-
[
";"
":"
","
] @punctuation.delimiter
-(identifier) @variable
-
(import_module
- (identifier) @namespace)
+ (identifier) @module)
(import_item
- (identifier) @namespace)
+ (identifier) @module)
(export
- (identifier) @namespace)
-
-(chain
- start: (identifier) @function)
-
-(chain
- (lookup (identifier)) @variable.other.member)
+ (identifier) @module)
(call
- function: (identifier)) @function
+ function: (identifier) @function.method)
-(call_arg
- (identifier) @variable.other.member)
+(chain
+ lookup: (identifier) @variable.other.member)
[
(true)
@@ -147,10 +138,15 @@
(self) @variable.builtin
-(type
- _ @type)
+(variable
+ type: (identifier) @type)
(arg
(_ (identifier) @variable.parameter))
(ellipsis) @variable.parameter
+
+(function
+ output_type: (identifier) @type)
+
+(identifier) @variable