summaryrefslogtreecommitdiff
path: root/runtime/queries
diff options
context:
space:
mode:
authorPham Huy Hoang2023-08-16 16:28:07 +0000
committerGitHub2023-08-16 16:28:07 +0000
commit56ccaedffbb8011e36012278e2a4861a8d435a60 (patch)
tree3233188b161726ba6fcadc100119f3951c255388 /runtime/queries
parent0a45fb4371c3af4a66c430c61d256fe13f4df543 (diff)
markdown.inline: Add `injection.combined` to html tag (#7960)
Problem: Closing tags for markdown is sometimes not highlighted Solution: Add `injection.combined` to create a valid syntax tree for highlighting
Diffstat (limited to 'runtime/queries')
-rw-r--r--runtime/queries/markdown.inline/injections.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/queries/markdown.inline/injections.scm b/runtime/queries/markdown.inline/injections.scm
index c2e7012c..62b82678 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))