Skip to content

Commit

Permalink
add textobject queries for perl
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Aug 14, 2023
1 parent ca15680 commit 0930c11
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
| pascal ||| | `pasls` |
| passwd || | | |
| pem || | | |
| perl || || `perlnavigator` |
| perl || || `perlnavigator` |
| php |||| `intelephense` |
| po ||| | |
| pod || | | |
Expand Down
14 changes: 14 additions & 0 deletions runtime/queries/perl/textobjects.scm
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0930c11

Please sign in to comment.