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 Sep 10, 2023
1 parent 53ce096 commit e9043e3
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 @@ -112,7 +112,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 e9043e3

Please sign in to comment.