diff options
| author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2024-01-06 15:05:50 +0900 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-01-19 16:58:37 +0100 |
| commit | 57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9 (patch) | |
| tree | 70bf645539882b88e6fa129cefd30986b89bbac3 /queries/swift/indents.scm | |
| parent | ci: add query lint job (diff) | |
| download | nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.gz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.bz2 nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.lz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.xz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.zst nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.zip | |
chore: query formatting
Diffstat (limited to 'queries/swift/indents.scm')
| -rw-r--r-- | queries/swift/indents.scm | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/queries/swift/indents.scm b/queries/swift/indents.scm index 63d1c9011..3204af3f3 100644 --- a/queries/swift/indents.scm +++ b/queries/swift/indents.scm @@ -47,16 +47,13 @@ _ @indent.branch (#not-has-type? @indent.branch type_parameters parameter)) - (ERROR [ - "<" - "{" - "(" + "<" + "{" + "(" "[" - ] -) @indent.begin - + ]) @indent.begin ; if-elseif (if_statement @@ -65,23 +62,34 @@ ; case Foo: ; default Foo: ; @attribute default Foo: -(switch_entry . _ @indent.branch) +(switch_entry + . + _ @indent.branch) + +(function_declaration + ")" @indent.branch) -(function_declaration ")" @indent.branch) +(type_parameters + ">" @indent.branch @indent.end .) + +(tuple_expression + ")" @indent.branch @indent.end) + +(value_arguments + ")" @indent.branch @indent.end) + +(tuple_type + ")" @indent.branch @indent.end) -(type_parameters ">" @indent.branch @indent.end .) -(tuple_expression ")" @indent.branch @indent.end) -(value_arguments ")" @indent.branch @indent.end) -(tuple_type ")" @indent.branch @indent.end) (modifiers - (attribute ")" @indent.branch @indent.end)) + (attribute + ")" @indent.branch @indent.end)) [ "}" "]" ] @indent.branch @indent.end - [ ; (ERROR) (comment) |
