nvim-treesitter/runtime/queries/swift/folds.scm
2025-06-24 10:07:24 +02:00

35 lines
978 B
Scheme

; 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