diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-09-17 17:53:26 -0700 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-09-19 08:43:58 +0200 |
| commit | 63c532fde5fe52a6ad907b577cdc3fa136475fc6 (patch) | |
| tree | 70afccea24282e63d4897fe95cbbf5fdef3839b8 /queries | |
| parent | feat(swift): add many missing highlights (diff) | |
| download | nvim-treesitter-63c532fde5fe52a6ad907b577cdc3fa136475fc6.tar nvim-treesitter-63c532fde5fe52a6ad907b577cdc3fa136475fc6.tar.gz nvim-treesitter-63c532fde5fe52a6ad907b577cdc3fa136475fc6.tar.bz2 nvim-treesitter-63c532fde5fe52a6ad907b577cdc3fa136475fc6.tar.lz nvim-treesitter-63c532fde5fe52a6ad907b577cdc3fa136475fc6.tar.xz nvim-treesitter-63c532fde5fe52a6ad907b577cdc3fa136475fc6.tar.zst nvim-treesitter-63c532fde5fe52a6ad907b577cdc3fa136475fc6.zip | |
feat(swift): fold queries
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/swift/folds.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/queries/swift/folds.scm b/queries/swift/folds.scm new file mode 100644 index 000000000..cfbc6d0b1 --- /dev/null +++ b/queries/swift/folds.scm @@ -0,0 +1,35 @@ +; format-ignore +[ + (protocol_body) ; protocol Foo { ... } + (class_body) ; class Foo { ... } + (enum_class_body) ; enum Foo { ... } + (function_body) ; func Foo (...) {...} + (computed_property) ; { ... } + + (computed_getter) ; get { ... } + (computed_setter) ; set { ... } + + (do_statement) + (if_statement) + (for_statement) + (switch_statement) + (while_statement) + (guard_statement) + (switch_entry) + + (type_parameters) ; x<Foo> + (tuple_type) ; (...) + (array_type) ; [String] + (dictionary_type) ; [Foo: Bar] + + (call_expression) ; callFunc(...) + (tuple_expression) ; ( foo + bar ) + (array_literal) ; [ foo, bar ] + (dictionary_literal) ; [ foo: bar, x: y ] + (lambda_literal) + (willset_didset_block) + (willset_clause) + (didset_clause) + + (import_declaration)+ +] @fold |
