diff options
| author | Andy Freeland <andy@andyfreeland.net> | 2022-07-22 20:04:16 -0700 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-07-25 21:28:40 +0200 |
| commit | 0d0949683d5e99262e5246334cc9e6dea30f2916 (patch) | |
| tree | 0b23f0a4a600df67dbc14e59f00611290222449c /queries/markdown | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-0d0949683d5e99262e5246334cc9e6dea30f2916.tar nvim-treesitter-0d0949683d5e99262e5246334cc9e6dea30f2916.tar.gz nvim-treesitter-0d0949683d5e99262e5246334cc9e6dea30f2916.tar.bz2 nvim-treesitter-0d0949683d5e99262e5246334cc9e6dea30f2916.tar.lz nvim-treesitter-0d0949683d5e99262e5246334cc9e6dea30f2916.tar.xz nvim-treesitter-0d0949683d5e99262e5246334cc9e6dea30f2916.tar.zst nvim-treesitter-0d0949683d5e99262e5246334cc9e6dea30f2916.zip | |
Support TOML metadata in Markdown injections
Hugo, Zola, and likely other static site generators use `+++` for TOML,
not YAML.
Diffstat (limited to 'queries/markdown')
| -rw-r--r-- | queries/markdown/injections.scm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/queries/markdown/injections.scm b/queries/markdown/injections.scm index b74c33a99..465cccef8 100644 --- a/queries/markdown/injections.scm +++ b/queries/markdown/injections.scm @@ -6,9 +6,7 @@ ((html_block) @html) -([ - (minus_metadata) - (plus_metadata) -] @yaml (#offset! @yaml 1 0 -1 0)) +((minus_metadata) @yaml (#offset! @yaml 1 0 -1 0)) +((plus_metadata) @toml (#offset! @toml 1 0 -1 0)) ((inline) @markdown_inline (#exclude_children! @markdown_inline)) |
