mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
highlights(markdown): separate highlight for header marker and underline (#2129)
This commit is contained in:
parent
e01c7ce972
commit
c9db432435
1 changed files with 12 additions and 3 deletions
|
|
@ -1,8 +1,17 @@
|
|||
;; From MDeiml/tree-sitter-markdown
|
||||
(atx_heading (heading_content) @text.title)
|
||||
(setext_heading (heading_content) @text.title)
|
||||
|
||||
[
|
||||
(atx_heading)
|
||||
(setext_heading)
|
||||
] @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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue