Skip to content

Commit

Permalink
Add TS quote support for go,lua,perl,python
Browse files Browse the repository at this point in the history
Re #287
  • Loading branch information
andymass committed May 18, 2023
1 parent 6c8909b commit b8eca3b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions after/queries/go/matchup.scm
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@
(expression_switch_statement "switch" @open.switch
(expression_case "case" @mid.switch.1)
(default_case "default" @mid.switch.2)) @scope.switch

(_
"\"" @open.quote_double
"\"" @close.quote_double) @scope.quote_double
2 changes: 2 additions & 0 deletions after/queries/lua/matchup.scm
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
; inherits: quote

(for_statement
"do" @open.loop
"end" @close.loop) @scope.loop
Expand Down
2 changes: 2 additions & 0 deletions after/queries/perl/matchup.scm
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
; inherits: quote

(if_statement
"if" @open.if
"elsif"? @mid.if.1
Expand Down
4 changes: 4 additions & 0 deletions after/queries/python/matchup.scm
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@
(finally_clause "finally" @mid.try.1)?
(except_clause "except" @mid.try.2)?
(else_clause "else" @mid.try.3)?) @scope.try

(_
"\"" @open.quote_all
"\"" @close.quote_all) @scope.quote_all

0 comments on commit b8eca3b

Please sign in to comment.