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.scm19
1 files changed, 12 insertions, 7 deletions
diff --git a/runtime/queries/koto/highlights.scm b/runtime/queries/koto/highlights.scm
index de0971b1..b1dd990e 100644
--- a/runtime/queries/koto/highlights.scm
+++ b/runtime/queries/koto/highlights.scm
@@ -5,11 +5,13 @@
"*"
"/"
"%"
+ "^"
"+="
"-="
"*="
"/="
"%="
+ "^="
"=="
"!="
"<"
@@ -99,12 +101,18 @@
(export
(identifier) @namespace)
-(call
- function: (identifier) @function.method)
+(chain
+ start: (identifier) @function)
(chain
lookup: (identifier) @variable.other.member)
+(call
+ function: (identifier)) @function
+
+(call_arg
+ (identifier) @variable.other.member)
+
[
(true)
(false)
@@ -139,13 +147,10 @@
(self) @variable.builtin
-(variable
- type: (identifier) @type)
+(type
+ _ @type)
(arg
(_ (identifier) @variable.parameter))
(ellipsis) @variable.parameter
-
-(function
- output_type: (identifier) @type)