mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-06 04:17:43 +03:00
Update Swift Grammar and Queries (#10802)
This commit is contained in:
parent
44504b720b
commit
aa1630a41a
6 changed files with 78 additions and 13 deletions
23
runtime/queries/swift/textobjects.scm
Normal file
23
runtime/queries/swift/textobjects.scm
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue