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
commit56ccaedffbb8011e36012278e2a4861a8d435a60
authorPham Huy Hoang <hoangtun0810@gmail.com>
dateThu 17 Aug 2023, 01:28 (3 years ago)
parent0a45fb4
runtime/queries/markdown.inline/injections.scm+4−1
@@ -1,4 +1,7 @@
11
2−((html_tag) @injection.content (#set! injection.language "html") (#set! injection.include-unnamed-children))
2+((html_tag) @injection.content
3+ (#set! injection.language "html")
4+ (#set! injection.include-unnamed-children)
5+ (#set! injection.combined))
36
47((latex_block) @injection.content (#set! injection.language "latex") (#set! injection.include-unnamed-children))