From: Matt Ellis Date: Tue, 8 Jul 2014 09:27:04 +0000 (+0100) Subject: Support indented code fences inside lists X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/ce80d929db5305af902a0191c5b1153b1d04d10c?ds=sidebyside Support indented code fences inside lists --- diff --git a/plugin/mkd.vim b/plugin/mkd.vim index 2eb1aff..a369790 100644 --- a/plugin/mkd.vim +++ b/plugin/mkd.vim @@ -22,7 +22,7 @@ function! s:Markdown_highlight_sources() let group = 'mkdSnippet' . toupper(ft) let include = s:syntax_include(ft) - let command = 'syntax region %s matchgroup=%s start="```%s$" matchgroup=%s end="```" keepend contains=%s%s' + let command = 'syntax region %s matchgroup=%s start="^\s*```%s$" matchgroup=%s end="\s*```$" keepend contains=%s%s' execute printf(command, group, startgroup, ft, endgroup, include, has('conceal') ? ' concealends' : '') execute printf('syntax cluster mkdNonListItem add=%s', group)