Skip to content

Commit

Permalink
Reorder scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
chbk committed Feb 21, 2025
1 parent 9772a74 commit 56d3132
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions crates/languages/src/markdown-inline/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
(emphasis) @markup.emphasis
(strong_emphasis) @markup.emphasis.strong
(code_span) @markup.raw
(strikethrough) @markup.strikethrough
(emphasis) @emphasis.markup
(strong_emphasis) @emphasis.strong.markup
(code_span) @raw.markup
(strikethrough) @strikethrough.markup

[
(inline_link)
(shortcut_link)
(collapsed_reference_link)
(full_reference_link)
(image)
] @markup.link
] @link.markup

(inline_link ["(" ")"] @markup.link.url)
(image ["(" ")"] @markup.link.url)
(inline_link ["(" ")"] @link.url.markup)
(image ["(" ")"] @link.url.markup)
[
(link_destination)
(uri_autolink)
(email_autolink)
] @markup.link.url
] @link.url.markup
12 changes: 6 additions & 6 deletions crates/languages/src/markdown/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
(atx_heading)
(setext_heading)
(thematic_break)
] @markup.heading
(setext_heading (paragraph) @markup.heading)
] @heading.markup
(setext_heading (paragraph) @heading.markup)

[
(list_marker_plus)
Expand All @@ -27,8 +27,8 @@

(fenced_code_block
(info_string
(language) @punctuation.markup.embedded))
(fenced_code_block_delimiter) @punctuation.markup.embedded
(language) @punctuation.embedded.markup))
(fenced_code_block_delimiter) @punctuation.embedded.markup

(link_reference_definition) @markup.link
(link_destination) @markup.link.url
(link_reference_definition) @link.markup
(link_destination) @link.url.markup

0 comments on commit 56d3132

Please sign in to comment.