2021-12-13 21:29:07 +01:00
|
|
|
;; From MDeiml/tree-sitter-markdown
|
2021-12-20 08:38:42 +08:00
|
|
|
(atx_heading (heading_content) @text.title)
|
|
|
|
|
(setext_heading (heading_content) @text.title)
|
|
|
|
|
|
2020-10-01 21:38:38 +02:00
|
|
|
[
|
2021-12-20 08:38:42 +08:00
|
|
|
(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
|
2020-10-01 21:38:38 +02:00
|
|
|
|
2022-01-07 13:15:48 +05:30
|
|
|
[
|
|
|
|
|
(code_span)
|
|
|
|
|
(link_title)
|
2022-01-11 11:50:50 +01:00
|
|
|
(indented_code_block)
|
|
|
|
|
(fenced_code_block)
|
2022-01-07 13:15:48 +05:30
|
|
|
] @text.literal
|
2020-10-01 21:38:38 +02:00
|
|
|
|
|
|
|
|
[
|
2022-01-11 11:50:50 +01:00
|
|
|
(emphasis_delimiter)
|
|
|
|
|
(code_span_delimiter)
|
|
|
|
|
(fenced_code_block_delimiter)
|
2021-12-29 10:38:13 +01:00
|
|
|
] @punctuation.delimiter
|
2022-01-11 11:50:50 +01:00
|
|
|
|
2021-12-29 10:38:13 +01:00
|
|
|
(code_fence_content) @none
|
2021-12-13 21:29:07 +01:00
|
|
|
|
|
|
|
|
(emphasis) @text.emphasis
|
|
|
|
|
|
|
|
|
|
(strong_emphasis) @text.strong
|
2020-10-01 21:38:38 +02:00
|
|
|
|
|
|
|
|
(link_destination) @text.uri
|
2021-02-25 12:23:12 +00:00
|
|
|
|
2022-01-07 13:48:23 +05:30
|
|
|
[
|
|
|
|
|
(link_label)
|
|
|
|
|
(link_text)
|
|
|
|
|
(image_description)
|
|
|
|
|
] @text.reference
|
2021-12-13 21:29:07 +01:00
|
|
|
|
|
|
|
|
[
|
|
|
|
|
(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)
|
2021-12-13 21:29:07 +01:00
|
|
|
] @punctuation.special
|
|
|
|
|
|
2022-01-08 18:56:23 +01:00
|
|
|
(block_quote_marker) @punctuation.special
|
|
|
|
|
|
2021-12-13 21:29:07 +01:00
|
|
|
[
|
|
|
|
|
(backslash_escape)
|
|
|
|
|
(hard_line_break)
|
|
|
|
|
] @string.escape
|
2021-12-29 10:38:13 +01:00
|
|
|
|
2022-01-07 13:47:46 +05:30
|
|
|
(image "!" @punctuation.delimiter)
|
2022-01-07 13:12:21 +05:30
|
|
|
(image "[" @punctuation.delimiter)
|
|
|
|
|
(image "]" @punctuation.delimiter)
|
|
|
|
|
(image "(" @punctuation.delimiter)
|
2022-01-10 17:00:02 +01:00
|
|
|
; (image ")" @punctuation.delimiter)
|
2022-01-07 13:47:46 +05:30
|
|
|
|
2021-12-29 10:38:13 +01:00
|
|
|
(inline_link "[" @punctuation.delimiter)
|
|
|
|
|
(inline_link "]" @punctuation.delimiter)
|
|
|
|
|
(inline_link "(" @punctuation.delimiter)
|
2022-01-10 17:00:02 +01:00
|
|
|
; (inline_link ")" @punctuation.delimiter)
|
2022-01-07 13:47:46 +05:30
|
|
|
|
2021-12-29 10:38:13 +01:00
|
|
|
(shortcut_link "[" @punctuation.delimiter)
|
|
|
|
|
(shortcut_link "]" @punctuation.delimiter)
|