From: Matt Ellis Date: Tue, 8 Jul 2014 09:16:39 +0000 (+0100) Subject: Prevent sub-words overriding X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/67ccef9f3e32d56b9d63e2ac55527af760a4e109?ds=sidebyside Prevent sub-words overriding E.g. ```vi was overriding ```vim --- diff --git a/plugin/mkd.vim b/plugin/mkd.vim index 4542ced..2eb1aff 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$" matchgroup=%s end="```" keepend contains=%s%s' execute printf(command, group, startgroup, ft, endgroup, include, has('conceal') ? ' concealends' : '') execute printf('syntax cluster mkdNonListItem add=%s', group)