commit 43d65dde890cea37bfb3c858af6e7a2e746a83bc
parent 24abd6c727584f943f7ef879560400195468492f
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Fri, 28 Aug 2020 22:48:50 +0200
vim: markdown syntax support for Zola front matter
Former-commit-id: c0ae6f8e954fd1c4d2f2bc0e90a0a47a80a69fe9
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/vim/after/syntax/markdown.vim b/vim/after/syntax/markdown.vim
@@ -4,6 +4,7 @@ syn match markdownLatex "\\[a-z0-9]\+{\?.*}\?" contains=@NoSpell
syn region markdownMathInline start="\(\\\)\@<!\$\(\$\)\@!" end="\$" contains=@NoSpell
syn region markdownMathBlock start="\$\$" end="\$\$" contains=@NoSpell
syn region markdownComment start="<!--" end="-->" contains=@NoSpell,Todo
+syn region markdownAbbrev start="\*\[" end="$"
syn keyword Todo FIXME TODO contained
unlet! b:current_syntax
@@ -11,7 +12,9 @@ syntax include @YAML syntax/yaml.vim
" Deciding to only keep yaml blocks at start of buffer, otherwise <hr> would be counted as start of yaml
" syn region markdownYaml matchgroup=SpecialComment keepend start="\(\%^\|^\s*\)---$" end="^\(-\|\.\)\{3\}$" contains=@YAML
syn region markdownYaml matchgroup=SpecialComment keepend start="\%^---$" end="^\(-\|\.\)\{3\}$" contains=@YAML
-syn region markdownAbbrev start="\*\[" end="$"
+unlet! b:current_syntax
+syntax include @Conf syntax/conf.vim
+syn region markdownRust matchgroup=SpecialComment keepend start="\%^+++$" end="^+++$" contains=@Conf
let b:current_syntax = 'markdown'
hi def link markdownMathInline Special