forked from Mirrors/helix
Improve wren support (#7819)
parent
5a51036bc1
commit
f19793c2f8
@ -0,0 +1,29 @@
|
||||
[
|
||||
(list)
|
||||
(map)
|
||||
(call_body)
|
||||
(parameter_list)
|
||||
(call_expression)
|
||||
(getter_definition)
|
||||
(setter_definition)
|
||||
(prefix_operator_definition)
|
||||
(subscript_operator_definition)
|
||||
(subscript_setter_definition)
|
||||
(infix_operator_definition)
|
||||
(method_definition)
|
||||
(constructor)
|
||||
(static_method_definition)
|
||||
(static_getter_definition)
|
||||
(attribute)
|
||||
(conditional)
|
||||
(class_body)
|
||||
(if_statement)
|
||||
(for_statement)
|
||||
(while_statement)
|
||||
] @indent
|
||||
|
||||
[
|
||||
"}"
|
||||
"]"
|
||||
")"
|
||||
] @outdent
|
@ -0,0 +1,3 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment")
|
||||
(#set! injection.include-children))
|
@ -0,0 +1,21 @@
|
||||
[
|
||||
(method_definition)
|
||||
] @local.scope
|
||||
|
||||
(name) @local.reference
|
||||
(field) @local.reference
|
||||
(static_field) @local.reference
|
||||
|
||||
(for_statement
|
||||
loop_variable: (name) @local.definition)
|
||||
|
||||
(variable_definition
|
||||
name: (name) @local.definition)
|
||||
|
||||
(assignment
|
||||
left: (field) @local.definition)
|
||||
|
||||
(assignment
|
||||
left: (static_field) @local.definition)
|
||||
|
||||
(parameter) @local.definition
|
Loading…
Reference in New Issue