Highlight "TOML" front matter on markdown files 💬 by Caio 5 years ago (log)
A bit iffy, just like the yaml version, but it works alright
A bit iffy, just like the yaml version, but it works alright
|
1 2 3 4 5 6 7 8 9 10 11 |
" " YAML Front Matter unlet! b:current_syntax syn include @YamlTop syntax/yaml.vim syn region yamlHead start="\%^---$" end="^---\s*$" keepend contains=@YamlTop " Config/kinda-TOML Front Matter unlet! b:current_syntax syn include @ConfigTop syntax/config.vim syn region Comment start="\%^+++$" end="^+++\s*$" keepend contains=@ConfigTop let b:current_syntax="markdown" |