Skip to content

Commit

Permalink
slint indents
Browse files Browse the repository at this point in the history
  • Loading branch information
erasin authored and the-mikedavis committed Aug 8, 2022
1 parent f09d2bc commit d932113
Showing 1 changed file with 8 additions and 26 deletions.
34 changes: 8 additions & 26 deletions runtime/queries/slint/indents.scm
Original file line number Diff line number Diff line change
@@ -1,29 +1,11 @@

; [
; (struct_definition)
; (component_definition)
; ] @indent

[
(field_declaration_list_body)
(list_definition_body)
(struct_field_declaration_list_body)
(field_declaration_list_body)
(list_definition_body)
(struct_field_declaration_list_body)
] @indent

; [
; "{"
; "}"
; "("
; ")"
; (if_statement)
; "else if"
; "else"
; ] @branch

; "{" @indent
"}" @indent_end

(comment) @auto

(string) @auto

[
"}"
"]"
")"
] @outdent

0 comments on commit d932113

Please sign in to comment.