From 5c213f7de4df551284cf46631508b1b0d5244a5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20B=C3=BCnnig?= Date: Mon, 28 Nov 2022 16:19:16 +0100 Subject: [PATCH] fix(grammar): Add `block_comment` and `comment_environment` injection for latex comments (#4922) --- runtime/queries/latex/injections.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/runtime/queries/latex/injections.scm b/runtime/queries/latex/injections.scm index d3fdb0ca7..101374686 100644 --- a/runtime/queries/latex/injections.scm +++ b/runtime/queries/latex/injections.scm @@ -1,2 +1,6 @@ -((line_comment) @injection.content - (#set! injection.language "comment")) +([ + (comment) + (line_comment) + (block_comment) + (comment_environment) + ] @injection.content (#set! injection.language "comment"))