nvim-treesitter/queries/markdown/highlights.scm
2021-12-21 01:07:22 +01:00

46 lines
782 B
Scheme

;; 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_fence_content) @none
[
(indented_code_block)
(fenced_code_block)
(code_span)
] @text.literal
(emphasis) @text.emphasis
(strong_emphasis) @text.strong
(link_destination) @text.uri
(link_label) @text.reference
(link_text) @text.reference
[
(list_marker_plus)
(list_marker_minus)
(list_marker_star)
(list_marker_dot)
(list_marker_parenthesis)
(thematic_break)
] @punctuation.special
[
(backslash_escape)
(hard_line_break)
] @string.escape