helix-mirror/runtime/queries/wren/highlights.scm

83 lines
1.1 KiB
Scheme
Raw Normal View History

2023-08-04 18:25:36 +04:00
((name) @variable.builtin
2023-07-28 20:13:51 +04:00
(#match? @variable.builtin "^(Bool|Class|Fiber|Fn|List|Map|Null|Num|Object|Range|Sequence|String|System)$"))
(call_expression
2023-08-04 18:25:36 +04:00
(name) @function)
2023-07-28 20:13:51 +04:00
(method_definition
2023-08-04 18:25:36 +04:00
(name) @function.method)
2023-07-28 20:13:51 +04:00
((parameter) @variable.parameter)
(comment) @comment
(string) @string
(raw_string) @string
(number) @constant.numeric.integer
2023-08-04 18:25:36 +04:00
(name) @variable
(field) @variable
(static_field) @variable
2023-07-28 20:13:51 +04:00
(null) @constant.builtin
(boolean) @constant.builtin.boolean
(if_statement
[
"if"
"else"
] @keyword.control.conditional)
(for_statement
[
"for"
"in"
] @keyword.control.repeat)
(while_statement
[
"while"
] @keyword.control.repeat)
[
(break_statement)
(continue_statement)
(return_statement)
] @keyword.control.return
(class_definition
"is"
@keyword)
[
"import"
"for"
"as"
] @keyword.control.import
[
"is"
] @keyword
(operator) @operator
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
["," "."] @punctuation.delimiter
[
"class"
"var"
] @keyword.storage.type
[
"static"
] @keyword.storage.modifier
(constructor
["construct"] @constructor)