mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 22:40:12 -04:00
* switch to split markdown parser with separate block and inline parsers to improve performance * add exclude_children! directive (useful for something like Injected markdown incorrectly highlights indented docstrings #2212) * split markdown queries into block and inline ones and add the injection for inline into block grammar * add include_dir option to parser configs (needed because the two grammars don't live in the repos root directory) BREAKING CHANGE: downstream queries need to be adapted to new parser
9 lines
291 B
Scheme
9 lines
291 B
Scheme
(fenced_code_block
|
|
(info_string
|
|
(language) @language)
|
|
(code_fence_content) @content (#exclude_children! @content))
|
|
|
|
((html_block) @html)
|
|
|
|
(document . (section . (thematic_break) (_) @yaml @combined (thematic_break)))
|
|
((inline) @markdown_inline (#exclude_children! @markdown_inline))
|