From: Kaede Kainoki Date: Wed, 12 Oct 2016 11:52:50 +0000 (+0900) Subject: Fix the matching region of mkdListItem. X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/297ab45e4f0e1fa1f131e13531e18bf6a5231ded?ds=inline;hp=-c Fix the matching region of mkdListItem. --- 297ab45e4f0e1fa1f131e13531e18bf6a5231ded 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}\*$/