From: Hiroshi Shirosaki Date: Wed, 1 Feb 2017 05:41:12 +0000 (+0900) Subject: Merge pull request #297 from KainokiKaede/master X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/2f1103bcc483bc52c733d40fa55f6b03f79d3847?hp=164055a4c8c2f9fd2a6af8c580838bca57807f3d Merge pull request #297 from KainokiKaede/master Fix the matching region of mkdListItem. --- diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 72ba6a5..23a7c4a 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -102,7 +102,7 @@ syn region mkdFootnote start="\[^" end="\]" syn match mkdCode /^\s*\n\(\(\s\{8,}[^ ]\|\t\t\+[^\t]\).*\n\)\+/ syn match mkdCode /\%^\(\(\s\{4,}[^ ]\|\t\+[^\t]\).*\n\)\+/ syn match mkdCode /^\s*\n\(\(\s\{4,}[^ ]\|\t\+[^\t]\).*\n\)\+/ contained -syn match mkdListItem /^\s*\%([-*+]\|\d\+\.\)\s\+/ contained +syn match mkdListItem /^\s*\%([-*+]\|\d\+\.\)\ze\s\+/ contained syn region mkdListItemLine start="^\s*\%([-*+]\|\d\+\.\)\s\+" end="$" oneline contains=@mkdNonListItem,mkdListItem,@Spell syn region mkdNonListItemBlock start="\(\%^\(\s*\([-*+]\|\d\+\.\)\s\+\)\@!\|\n\(\_^\_$\|\s\{4,}[^ ]\|\t+[^\t]\)\@!\)" end="^\(\s*\([-*+]\|\d\+\.\)\s\+\)\@=" contains=@mkdNonListItem,@Spell syn match mkdRule /^\s*\*\s\{0,1}\*\s\{0,1}\*$/