diff options
author | Jesse Luehrs | 2023-09-10 19:27:04 +0000 |
---|---|---|
committer | GitHub | 2023-09-10 19:27:04 +0000 |
commit | 81d6d3ff0eace62481863b7957b5ccc52b1c6718 (patch) | |
tree | d840f88da263b53a5d7ee90b17a9130f6ffd846b /runtime/queries/perl/textobjects.scm | |
parent | 829db76563be3c7aec71ba3602b20bbbfa75f078 (diff) |
re-add indent and textobject queries for perl (#7947)
* bump tree-sitter-perl version
need some grammar tweaks for the indent queries to function properly
* add indent queries for perl
* add textobject queries for perl
Diffstat (limited to 'runtime/queries/perl/textobjects.scm')
-rw-r--r-- | runtime/queries/perl/textobjects.scm | 14 |
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 |