~gpanders/dotfiles

ref: 2da1dde5ea566f82ebe6532bc6d3b8670fd77ce8 dotfiles/vim/.vim/after/syntax/markdown.vim -rw-r--r-- 569 bytes
2da1dde5Greg Anders Note 'open' subcommand opens editor in NOTES_DIR when no argument given 1 year, 4 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'