mirror of https://github.com/helix-editor/helix
slint: Update treesitter parser and queries (#9551)
* slint: Update treesitter parser and queries * slint: Port over suggestions from nvim reviewpull/9574/head
parent
bbcc89241f
commit
a1272bdb17
@ -1,12 +1,11 @@
|
|||||||
[
|
[
|
||||||
(comp_body)
|
(anon_struct_block)
|
||||||
(state_statement)
|
(assignment_block)
|
||||||
(transition_statement)
|
(block)
|
||||||
(handler_body)
|
(enum_block)
|
||||||
(consequence_body)
|
(global_block)
|
||||||
(global_single)
|
(imperative_block)
|
||||||
|
(struct_block)
|
||||||
] @indent
|
] @indent
|
||||||
|
|
||||||
[
|
"}" @outdent
|
||||||
"}"
|
|
||||||
] @outdent
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
; locals.scm
|
[
|
||||||
|
(component)
|
||||||
(component_item) @local.scope
|
(component_definition)
|
||||||
|
(function_definition)
|
||||||
|
(imperative_block)
|
||||||
|
] @local.scope
|
||||||
|
@ -0,0 +1,35 @@
|
|||||||
|
(function_definition
|
||||||
|
(imperative_block) @funtion.inside) @function.around
|
||||||
|
|
||||||
|
(callback_event
|
||||||
|
(imperative_block) @function.inside) @function.around
|
||||||
|
|
||||||
|
(property
|
||||||
|
(imperative_block) @function.inside) @function.around
|
||||||
|
|
||||||
|
(struct_definition
|
||||||
|
(struct_block) @class.inside) @class.around
|
||||||
|
|
||||||
|
(enum_definition
|
||||||
|
(enum_block) @class.inside) @class.around
|
||||||
|
|
||||||
|
(global_definition
|
||||||
|
(global_block) @class.inside) @class.around
|
||||||
|
|
||||||
|
(component_definition
|
||||||
|
(block) @class.inside) @class.around
|
||||||
|
|
||||||
|
(component_definition
|
||||||
|
(block) @class.inside) @class.around
|
||||||
|
|
||||||
|
(comment) @comment.around
|
||||||
|
|
||||||
|
(typed_identifier
|
||||||
|
name: (_) @parameter.inside) @parameter.around
|
||||||
|
|
||||||
|
(callback
|
||||||
|
arguments: (_) @parameter.inside)
|
||||||
|
|
||||||
|
(string_value
|
||||||
|
"\"" . (_) @text.inside . "\"") @text.around
|
||||||
|
|
Loading…
Reference in New Issue