diff options
author | Pham Huy Hoang | 2023-08-16 16:28:07 +0000 |
---|---|---|
committer | GitHub | 2023-08-16 16:28:07 +0000 |
commit | 56ccaedffbb8011e36012278e2a4861a8d435a60 (patch) | |
tree | 3233188b161726ba6fcadc100119f3951c255388 /runtime/queries | |
parent | 0a45fb4371c3af4a66c430c61d256fe13f4df543 (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.scm | 5 |
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)) |