X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/a5786589c3c49199828d63ea403238ca95531d0b..824e85c3e7b40466c2a375e37c7e81a0584c7a79:/indent/markdown.vim?ds=inline diff --git a/indent/markdown.vim b/indent/markdown.vim index 3f89b5c..e21f287 100755 --- a/indent/markdown.vim +++ b/indent/markdown.vim @@ -19,7 +19,8 @@ setlocal comments+=b:> if exists("*GetMarkdownIndent") | finish | endif function! s:is_mkdCode(lnum) - return synIDattr(synID(a:lnum, 1, 0), 'name') == 'mkdCode' + let name = synIDattr(synID(a:lnum, 1, 0), 'name') + return (name =~ '^mkd\%(Code$\|Snippet\)' || name != '' && name !~ '^\%(mkd\|html\)') endfunction function! s:is_li_start(line)