Update slint indent queries

This commit is contained in:
Christian Clason 2022-12-27 16:28:56 +01:00
parent 55a9e3bbbc
commit fa09c1f3ef
2 changed files with 12 additions and 11 deletions

View file

@ -18,11 +18,11 @@
field: (identifier) @function.call))
(vis) @include
(units) @type
(array_literal
(array_literal
(identifier) @type)
(transition_statement state: (identifier) @field)
(state_expression state: (identifier) @field)
(struct_block_definition
(struct_block_definition
(identifier) @field)
; (state_identifier) @field
@ -35,7 +35,7 @@
"@" @keyword
[
"import"
"import"
"from"
] @include
@ -116,7 +116,7 @@
"angle"
"bool"
"brush"
"color"
"color"
"float"
"image"
"int"
@ -151,4 +151,4 @@
"=>"
] @operator
(ternary_expression [":" "?"] @conditional.ternary)
(ternary_expression [":" "?"] @conditional.ternary)

View file

@ -1,13 +1,14 @@
[
(field_declaration_list_body)
(list_definition_body)
(struct_field_declaration_list_body)
(comp_body)
(state_statement)
(transition_statement)
(handler_body)
(consequence_body)
(global_single)
] @indent
"}" @indent_end
(comment) @auto
(string) @auto
(string_literal) @auto