mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 00:40:06 -04:00
fix(highlights): lower priority for codeblocks with injections (#4905)
This commit is contained in:
parent
2d6e73ab2f
commit
a034c7aa25
4 changed files with 19 additions and 14 deletions
|
|
@ -9,11 +9,9 @@
|
|||
(atx_heading (atx_h5_marker) @text.title.5.marker (inline) @text.title.5)
|
||||
(atx_heading (atx_h6_marker) @text.title.6.marker (inline) @text.title.6)
|
||||
|
||||
[
|
||||
(link_title)
|
||||
(indented_code_block)
|
||||
(fenced_code_block)
|
||||
] @text.literal
|
||||
(link_title) @text.literal
|
||||
(indented_code_block) @text.literal.block
|
||||
((fenced_code_block) @text.literal.block (#set! "priority" 90))
|
||||
|
||||
(info_string) @label
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue