mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -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)
|
(setext_h2_underline)
|
||||||
] @punctuation.special
|
] @punctuation.special
|
||||||
|
|
||||||
(code_fence_content) @none
|
|
||||||
|
(code_span) @text.literal
|
||||||
|
|
||||||
[
|
[
|
||||||
(indented_code_block)
|
(indented_code_block)
|
||||||
(fenced_code_block)
|
(fenced_code_block)
|
||||||
(code_span)
|
] @punctuation.delimiter
|
||||||
] @text.literal
|
(code_fence_content) @none
|
||||||
|
|
||||||
|
|
||||||
(emphasis) @text.emphasis
|
(emphasis) @text.emphasis
|
||||||
|
|
||||||
|
|
@ -44,3 +44,11 @@
|
||||||
(backslash_escape)
|
(backslash_escape)
|
||||||
(hard_line_break)
|
(hard_line_break)
|
||||||
] @string.escape
|
] @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_block) @html)
|
||||||
((html_tag) @html)
|
((html_tag) @html)
|
||||||
|
|
||||||
|
((thematic_break) (_) @yaml @combined (thematic_break))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue