helix-mirror/runtime/queries/swift/textobjects.scm
2024-06-07 12:29:42 -05:00

24 lines
431 B
Scheme

(class_declaration
body: (_) @class.inside) @class.around
(protocol_declaration
body: (_) @class.inside) @class.around
(function_declaration
body: (_) @function.inside) @function.around
(parameter
(_) @parameter.inside) @parameter.around
(lambda_parameter
(_) @parameter.inside) @parameter.around
[
(comment)
(multiline_comment)
] @comment.inside
(comment)+ @comment.around
(multiline_comment) @comment.around