mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
feat(treesitter): update Markdown parsers and queries to v0.2.1
This commit is contained in:
@ -1,34 +1,34 @@
|
||||
;From MDeiml/tree-sitter-markdown & Helix
|
||||
(setext_heading
|
||||
(paragraph) @markup.heading.1
|
||||
(setext_h1_underline) @markup.heading.1.marker)
|
||||
(setext_h1_underline) @markup.heading.1)
|
||||
|
||||
(setext_heading
|
||||
(paragraph) @markup.heading.2
|
||||
(setext_h2_underline) @markup.heading.2.marker)
|
||||
(setext_h2_underline) @markup.heading.2)
|
||||
|
||||
(atx_heading
|
||||
(atx_h1_marker) @markup.heading.1.marker
|
||||
(atx_h1_marker) @markup.heading.1
|
||||
(inline) @markup.heading.1)
|
||||
|
||||
(atx_heading
|
||||
(atx_h2_marker) @markup.heading.2.marker
|
||||
(atx_h2_marker) @markup.heading.2
|
||||
(inline) @markup.heading.2)
|
||||
|
||||
(atx_heading
|
||||
(atx_h3_marker) @markup.heading.3.marker
|
||||
(atx_h3_marker) @markup.heading.3
|
||||
(inline) @markup.heading.3)
|
||||
|
||||
(atx_heading
|
||||
(atx_h4_marker) @markup.heading.4.marker
|
||||
(atx_h4_marker) @markup.heading.4
|
||||
(inline) @markup.heading.4)
|
||||
|
||||
(atx_heading
|
||||
(atx_h5_marker) @markup.heading.5.marker
|
||||
(atx_h5_marker) @markup.heading.5
|
||||
(inline) @markup.heading.5)
|
||||
|
||||
(atx_heading
|
||||
(atx_h6_marker) @markup.heading.6.marker
|
||||
(atx_h6_marker) @markup.heading.6
|
||||
(inline) @markup.heading.6)
|
||||
|
||||
(info_string) @label
|
||||
@ -54,12 +54,12 @@
|
||||
(#set! "priority" 90))
|
||||
|
||||
(fenced_code_block
|
||||
(fenced_code_block_delimiter) @markup.raw.delimiter
|
||||
(fenced_code_block_delimiter) @markup.raw.block
|
||||
(#set! conceal ""))
|
||||
|
||||
(fenced_code_block
|
||||
(info_string
|
||||
(language) @conceal
|
||||
(language) @label
|
||||
(#set! conceal "")))
|
||||
|
||||
(link_destination) @markup.link.url
|
||||
@ -69,6 +69,10 @@
|
||||
(link_label)
|
||||
] @markup.link.label
|
||||
|
||||
((link_label)
|
||||
.
|
||||
":" @punctuation.delimiter)
|
||||
|
||||
[
|
||||
(list_marker_plus)
|
||||
(list_marker_minus)
|
||||
@ -79,7 +83,7 @@
|
||||
|
||||
; NOTE: The following has been commented out due to issues with spaces in the
|
||||
; list marker nodes generated by the parser. If those spaces ever get captured
|
||||
; by a different node (e.g. block_continuation) we can safely readd these
|
||||
; by a different node (e.g. block_continuation) we can safely re-add these
|
||||
; conceals.
|
||||
; ;; Conceal bullet points
|
||||
; ([(list_marker_plus) (list_marker_star)]
|
||||
|
@ -16,10 +16,10 @@
|
||||
] @string.escape
|
||||
|
||||
; Conceal codeblock and text style markers
|
||||
((code_span_delimiter) @markup.raw.delimiter
|
||||
(#set! conceal ""))
|
||||
|
||||
((emphasis_delimiter) @conceal
|
||||
([
|
||||
(code_span_delimiter)
|
||||
(emphasis_delimiter)
|
||||
] @conceal
|
||||
(#set! conceal ""))
|
||||
|
||||
; Conceal inline links
|
||||
|
Reference in New Issue
Block a user