Update Swift Grammar and Queries (#10802)

This commit is contained in:
Arturs Krumins 2024-06-07 19:29:42 +02:00 committed by GitHub
parent 44504b720b
commit aa1630a41a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 78 additions and 13 deletions

View file

@ -0,0 +1,23 @@
(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