mirror of https://github.com/helix-editor/helix
Add wren support (#7765)
parent
d6856cfeec
commit
9a4890f62b
@ -0,0 +1,80 @@
|
||||
((identifier) @variable.builtin
|
||||
(#match? @variable.builtin "^(Bool|Class|Fiber|Fn|List|Map|Null|Num|Object|Range|Sequence|String|System)$"))
|
||||
|
||||
(call_expression
|
||||
(identifier) @function)
|
||||
|
||||
(method_definition
|
||||
(identifier) @function.method)
|
||||
|
||||
((parameter) @variable.parameter)
|
||||
|
||||
(comment) @comment
|
||||
(string) @string
|
||||
(raw_string) @string
|
||||
(number) @constant.numeric.integer
|
||||
(identifier) @variable
|
||||
(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)
|
@ -0,0 +1,12 @@
|
||||
(class_definition
|
||||
(class_body) @class.inside) @class.around
|
||||
|
||||
(method_definition
|
||||
body: (_) @function.inside) @function.around
|
||||
|
||||
(parameter_list
|
||||
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||||
|
||||
(comment) @comment.inside
|
||||
|
||||
(comment)+ @comment.around
|
Loading…
Reference in New Issue