X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2918519dd2c4e22223533e3f6f4823cf05784fb1..da169114e05f2e9bd19e58bd025520aa9ffe98c2:/indent/markdown.vim?ds=sidebyside 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)