forked from helix-editor/helix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-add indent and textobject queries for perl (helix-editor#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
- Loading branch information
Showing
4 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[ | ||
(block) | ||
(conditional_statement) | ||
(loop_statement) | ||
(cstyle_for_statement) | ||
(for_statement) | ||
(elsif) | ||
(array_element_expression) | ||
(hash_element_expression) | ||
(coderef_call_expression) | ||
(anonymous_slice_expression) | ||
(slice_expression) | ||
(keyval_expression) | ||
(anonymous_array_expression) | ||
(anonymous_hash_expression) | ||
(stub_expression) | ||
(func0op_call_expression) | ||
(func1op_call_expression) | ||
(map_grep_expression) | ||
(function_call_expression) | ||
(method_call_expression) | ||
(attribute) | ||
] @indent | ||
|
||
[ | ||
"}" | ||
"]" | ||
")" | ||
] @outdent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |