diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-12-27 16:28:56 +0100 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2022-12-27 17:52:29 +0100 |
| commit | fa09c1f3ef2128474914ef6d755666fad0dce08b (patch) | |
| tree | 18350fbb5ca1d6c0d132de8a07ffcf15cda97926 | |
| parent | Update slint highlight queries for rewrite (diff) | |
| download | nvim-treesitter-fa09c1f3ef2128474914ef6d755666fad0dce08b.tar nvim-treesitter-fa09c1f3ef2128474914ef6d755666fad0dce08b.tar.gz nvim-treesitter-fa09c1f3ef2128474914ef6d755666fad0dce08b.tar.bz2 nvim-treesitter-fa09c1f3ef2128474914ef6d755666fad0dce08b.tar.lz nvim-treesitter-fa09c1f3ef2128474914ef6d755666fad0dce08b.tar.xz nvim-treesitter-fa09c1f3ef2128474914ef6d755666fad0dce08b.tar.zst nvim-treesitter-fa09c1f3ef2128474914ef6d755666fad0dce08b.zip | |
Update slint indent queries
| -rw-r--r-- | queries/slint/highlights.scm | 10 | ||||
| -rw-r--r-- | queries/slint/indents.scm | 13 |
2 files changed, 12 insertions, 11 deletions
diff --git a/queries/slint/highlights.scm b/queries/slint/highlights.scm index 280e24b08..8928bc9a5 100644 --- a/queries/slint/highlights.scm +++ b/queries/slint/highlights.scm @@ -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)
\ No newline at end of file +(ternary_expression [":" "?"] @conditional.ternary) diff --git a/queries/slint/indents.scm b/queries/slint/indents.scm index 30761ef8f..44e426493 100644 --- a/queries/slint/indents.scm +++ b/queries/slint/indents.scm @@ -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 |
