Skip to content

Commit

Permalink
markdown.inline: Add injection.combined to html tag (helix-editor#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 and Schuyler Mortimer committed Jul 10, 2024
1 parent cc8d621 commit a332fea
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 a332fea

Please sign in to comment.