~gpanders/dotfiles

ref: c8e63bac959db19c138dcc3198a56514f0b444ff dotfiles/.vim/after/syntax/markdown.vim -rw-r--r-- 569 bytes
c8e63bacGreg Anders Manage dotfiles directly in home directory 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
" See https://github.com/tpope/vim-markdown/pull/140
syntax clear markdownCodeBlock
syn region markdownCodeBlock start="\n\(    \|\t\)" end="\v^((\t|\s{4})@!|$)" contained

" https://github.com/tpope/vim-markdown/pull/141/
hi def link markdownLinkDelimiter     Delimiter
hi def link markdownLinkTextDelimiter Delimiter

syn region markdownYamlMetadata matchgroup=markdownYamlMetadataDelimiter start="\%^---$" end="^\%(---\|\.\.\.\)$" keepend

hi link markdownYamlMetadataDelimiter Comment
hi link markdownYamlMetadata          Normal

let b:current_syntax = 'markdown'