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