nvim-treesitter/queries/markdown/highlights.scm

68 lines
1.3 KiB
Scheme
Raw Normal View History

;; From MDeiml/tree-sitter-markdown
(atx_heading (heading_content) @text.title)
(setext_heading (heading_content) @text.title)
[
(atx_h1_marker)
(atx_h2_marker)
(atx_h3_marker)
(atx_h4_marker)
(atx_h5_marker)
(atx_h6_marker)
(setext_h1_underline)
(setext_h2_underline)
] @punctuation.special
[
(code_span)
(link_title)
] @text.literal
[
(indented_code_block)
(fenced_code_block)
2021-12-29 10:38:13 +01:00
] @punctuation.delimiter
(code_fence_content) @none
(emphasis) @text.emphasis
(strong_emphasis) @text.strong
(link_destination) @text.uri
2021-02-25 12:23:12 +00:00
[
(link_label)
(link_text)
(image_description)
] @text.reference
[
(list_marker_plus)
(list_marker_minus)
(list_marker_star)
(list_marker_dot)
(list_marker_parenthesis)
2021-12-20 18:17:48 -05:00
(thematic_break)
] @punctuation.special
2022-01-08 18:56:23 +01:00
(block_quote_marker) @punctuation.special
[
(backslash_escape)
(hard_line_break)
] @string.escape
2021-12-29 10:38:13 +01:00
(image "!" @punctuation.delimiter)
(image "[" @punctuation.delimiter)
(image "]" @punctuation.delimiter)
(image "(" @punctuation.delimiter)
(image ")" @punctuation.delimiter)
2021-12-29 10:38:13 +01:00
(inline_link "[" @punctuation.delimiter)
(inline_link "]" @punctuation.delimiter)
(inline_link "(" @punctuation.delimiter)
(inline_link ")" @punctuation.delimiter)
2021-12-29 10:38:13 +01:00
(shortcut_link "[" @punctuation.delimiter)
(shortcut_link "]" @punctuation.delimiter)