mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-12 20:03:48 -05:00
Support YAML metadata
Resolves: https://github.com/tpope/vim-markdown/issues/71
This commit is contained in:
@@ -138,6 +138,12 @@ endfor
|
|||||||
unlet! s:type
|
unlet! s:type
|
||||||
unlet! s:done_include
|
unlet! s:done_include
|
||||||
|
|
||||||
|
if get(b:, 'markdown_yaml_head', get(g:, 'markdown_yaml_head', main_syntax ==# 'markdown'))
|
||||||
|
syn include @markdownYamlTop syntax/yaml.vim
|
||||||
|
unlet! b:current_syntax
|
||||||
|
syn region markdownYamlHead start="\%^---$" end="^\%(---\|\.\.\.\)\s*$" keepend contains=@markdownYamlTop,@Spell
|
||||||
|
endif
|
||||||
|
|
||||||
syn match markdownEscape "\\[][\\`*_{}()<>#+.!-]"
|
syn match markdownEscape "\\[][\\`*_{}()<>#+.!-]"
|
||||||
syn match markdownError "\w\@<=_\w\@="
|
syn match markdownError "\w\@<=_\w\@="
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user