From 63913a35b990a91298974bff127e6bfaf88e4640 Mon Sep 17 00:00:00 2001 From: Pham Huy Hoang Date: Wed, 16 Aug 2023 13:31:54 +0900 Subject: [PATCH] markdown: Add `injection.combined` to html tag Problem: Closing tags for markdown is sometimes not highlighted Solution: Add `injection.combined` to create a valid syntax tree for highlighting --- runtime/queries/markdown.inline/injections.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/queries/markdown.inline/injections.scm b/runtime/queries/markdown.inline/injections.scm index c2e7012caa04..62b82678d024 100644 --- a/runtime/queries/markdown.inline/injections.scm +++ b/runtime/queries/markdown.inline/injections.scm @@ -1,4 +1,7 @@ -((html_tag) @injection.content (#set! injection.language "html") (#set! injection.include-unnamed-children)) +((html_tag) @injection.content + (#set! injection.language "html") + (#set! injection.include-unnamed-children) + (#set! injection.combined)) ((latex_block) @injection.content (#set! injection.language "latex") (#set! injection.include-unnamed-children))