aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorErik Bünnig2022-11-28 15:19:16 +0000
committerGitHub2022-11-28 15:19:16 +0000
commit5c213f7de4df551284cf46631508b1b0d5244a5a (patch)
treeeb0bbd8d6267be8bb479e7ecb3f9d83e2309a4b7 /runtime
parentda355a3231174ac019b43a31958b73e818e6463f (diff)
fix(grammar): Add `block_comment` and `comment_environment` injection for latex comments (#4922)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/latex/injections.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/queries/latex/injections.scm b/runtime/queries/latex/injections.scm
index d3fdb0ca..10137468 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"))