Skip to content

Commit

Permalink
markdown.inline: Add injection.combined to html tag (#7960)
Browse files Browse the repository at this point in the history
Problem: Closing tags for markdown is sometimes not highlighted
Solution: Add `injection.combined` to create a valid syntax tree for
highlighting
  • Loading branch information
lucario387 authored Aug 16, 2023
1 parent 0a45fb4 commit 56ccaed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime/queries/markdown.inline/injections.scm
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit 56ccaed

Please sign in to comment.