dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 1d8153c3cd6b62120fa07edc76a8c59797ab1b83
parent 2dea6a0bd18eb6ba44b514b946945f7533679e6b
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Sun,  1 Mar 2020 13:22:02 +0100

vim: allow yaml highlighting in markdown

Former-commit-id: 52db75ec165f9a02df7c4883cac36ac84ebc16b0
Diffstat:
Mvim/after/syntax/markdown.vim | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/vim/after/syntax/markdown.vim b/vim/after/syntax/markdown.vim @@ -1,5 +1,14 @@ syn match markdownError "\w\@<=\w\@=" -syn region markdownMathInline start="\(\\\)\@<!\$\(\$\)\@!" end="\$" -syn region markdownMathBlock start="\$\$" end="\$\$" +syn region markdownMathInline start="\(\\\)\@<!\$\(\$\)\@!" end="\$" contains=@NoSpell +syn region markdownMathBlock start="\$\$" end="\$\$" contains=@NoSpell +syn region markdownComment start="<!--" end="-->" contains=@NoSpell + +unlet b:current_syntax +syntax include @YAML syntax/yaml.vim +syn region markdownYaml matchgroup=SpecialComment keepend start="\(\%^\|^\s*\)---$" end="^\(-\|\.\)\{3\}$" contains=@YAML +let b:current_syntax = 'markdown' + hi def link markdownMathInline Special hi def link markdownMathBlock Special +hi def link markdownComment Comment +hi link markdownYaml SpecialComment