Skip to content

Commit

Permalink
feat: add injection queries for heredocs and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
calebdw authored and cfroystad committed Jan 6, 2024
1 parent ba383c7 commit 2f791d9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions queries/injections.scm
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
((text) @injection.content
(#set! injection.language "html")
(#set! injection.combined))

((comment) @injection.content
(#set! injection.language "phpdoc"))

(heredoc
(heredoc_body) @injection.content
(heredoc_end) @injection.language)

(nowdoc
(nowdoc_body) @injection.content
(heredoc_end) @injection.language)

0 comments on commit 2f791d9

Please sign in to comment.