helix/runtime/queries/swift/textobjects.scm

24 lines
431 B
Scheme
Raw Normal View History

2024-09-13 13:28:20 -05:00
(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