mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Update slint indent queries
This commit is contained in:
parent
55a9e3bbbc
commit
fa09c1f3ef
2 changed files with 12 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue