aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/perl/textobjects.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/perl/textobjects.scm')
-rw-r--r--runtime/queries/perl/textobjects.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/queries/perl/textobjects.scm b/runtime/queries/perl/textobjects.scm
new file mode 100644
index 00000000..1b0b5f07
--- /dev/null
+++ b/runtime/queries/perl/textobjects.scm
@@ -0,0 +1,14 @@
+(subroutine_declaration_statement
+ body: (_) @function.inside) @function.around
+(anonymous_subroutine_expression
+ body: (_) @function.inside) @function.around
+
+(package_statement) @class.around
+(package_statement
+ (block) @class.inside)
+
+(list_expression
+ (_) @parameter.inside)
+
+(comment) @comment.around
+(pod) @comment.around