Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/swift/textobjects.scm')
-rw-r--r--runtime/queries/swift/textobjects.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/runtime/queries/swift/textobjects.scm b/runtime/queries/swift/textobjects.scm
new file mode 100644
index 00000000..2a9938bf
--- /dev/null
+++ b/runtime/queries/swift/textobjects.scm
@@ -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