Skip to content

Commit

Permalink
Rewrite TS perl query, fix #334
Browse files Browse the repository at this point in the history
  • Loading branch information
andymass committed Dec 19, 2023
1 parent 3f4fe49 commit 2550178
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions after/queries/perl/matchup.scm
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
; inherits: quote

(if_statement
(conditional_statement
"if" @open.if
"elsif"? @mid.if.1
"else"? @mid.if.2
) @scope.if

(function_definition
(elsif "elsif"? @mid.if.1)
(else "else"? @mid.if.2)

(subroutine_declaration_statement
"sub" @open.fun
) @scope.fun
(return_expression "return" @mid.fun.1)

0 comments on commit 2550178

Please sign in to comment.