From 5baf3311226f6da42f39bda09c0e6d602418fb0b 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 d3fdb0ca71781..101374686d051 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"))