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

View file

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