From 2f791d9d83c35b11e9a14daf9a58dd7e23566041 Mon Sep 17 00:00:00 2001 From: Caleb White Date: Fri, 5 Jan 2024 11:48:10 -0600 Subject: [PATCH] feat: add injection queries for heredocs and comments --- queries/injections.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/queries/injections.scm b/queries/injections.scm index 16d5736b..81899b50 100644 --- a/queries/injections.scm +++ b/queries/injections.scm @@ -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)