mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
improve markdown highlighting
This commit is contained in:
parent
8ada8faf2f
commit
142c017ecb
2 changed files with 15 additions and 5 deletions
|
|
@ -13,14 +13,14 @@
|
|||
(setext_h2_underline)
|
||||
] @punctuation.special
|
||||
|
||||
(code_fence_content) @none
|
||||
|
||||
(code_span) @text.literal
|
||||
|
||||
[
|
||||
(indented_code_block)
|
||||
(fenced_code_block)
|
||||
(code_span)
|
||||
] @text.literal
|
||||
|
||||
(fenced_code_block)
|
||||
] @punctuation.delimiter
|
||||
(code_fence_content) @none
|
||||
|
||||
(emphasis) @text.emphasis
|
||||
|
||||
|
|
@ -44,3 +44,11 @@
|
|||
(backslash_escape)
|
||||
(hard_line_break)
|
||||
] @string.escape
|
||||
|
||||
|
||||
(inline_link "[" @punctuation.delimiter)
|
||||
(inline_link "]" @punctuation.delimiter)
|
||||
(inline_link "(" @punctuation.delimiter)
|
||||
(inline_link ")" @punctuation.delimiter)
|
||||
(shortcut_link "[" @punctuation.delimiter)
|
||||
(shortcut_link "]" @punctuation.delimiter)
|
||||
|
|
|
|||
|
|
@ -5,3 +5,5 @@
|
|||
|
||||
((html_block) @html)
|
||||
((html_tag) @html)
|
||||
|
||||
((thematic_break) (_) @yaml @combined (thematic_break))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue