mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
Support TOML metadata in Markdown injections
Hugo, Zola, and likely other static site generators use `+++` for TOML, not YAML.
This commit is contained in:
parent
2139fca70c
commit
0d0949683d
1 changed files with 2 additions and 4 deletions
|
|
@ -6,9 +6,7 @@
|
||||||
|
|
||||||
((html_block) @html)
|
((html_block) @html)
|
||||||
|
|
||||||
([
|
((minus_metadata) @yaml (#offset! @yaml 1 0 -1 0))
|
||||||
(minus_metadata)
|
((plus_metadata) @toml (#offset! @toml 1 0 -1 0))
|
||||||
(plus_metadata)
|
|
||||||
] @yaml (#offset! @yaml 1 0 -1 0))
|
|
||||||
|
|
||||||
((inline) @markdown_inline (#exclude_children! @markdown_inline))
|
((inline) @markdown_inline (#exclude_children! @markdown_inline))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue