aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/wren/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/wren/highlights.scm')
-rw-r--r--runtime/queries/wren/highlights.scm10
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/queries/wren/highlights.scm b/runtime/queries/wren/highlights.scm
index 5454ce25..c37bc3bc 100644
--- a/runtime/queries/wren/highlights.scm
+++ b/runtime/queries/wren/highlights.scm
@@ -1,11 +1,11 @@
-((identifier) @variable.builtin
+((name) @variable.builtin
(#match? @variable.builtin "^(Bool|Class|Fiber|Fn|List|Map|Null|Num|Object|Range|Sequence|String|System)$"))
(call_expression
- (identifier) @function)
+ (name) @function)
(method_definition
- (identifier) @function.method)
+ (name) @function.method)
((parameter) @variable.parameter)
@@ -13,7 +13,9 @@
(string) @string
(raw_string) @string
(number) @constant.numeric.integer
-(identifier) @variable
+(name) @variable
+(field) @variable
+(static_field) @variable
(null) @constant.builtin
(boolean) @constant.builtin.boolean