From: aseom Date: Fri, 13 May 2016 09:05:01 +0000 (+0900) Subject: Highlight mkdLink, mkdInlineURL in Headings X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/29fe05b17380a89f7ca9fad5b7d2da3b153b6c42 Highlight mkdLink, mkdInlineURL in Headings --- diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 114b92b..72ba6a5 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -79,18 +79,18 @@ syn region mkdLinkTitle matchgroup=mkdDelimiter start=+'+ end=+'+ contained syn region mkdLinkTitle matchgroup=mkdDelimiter start=+(+ end=+)+ contained "HTML headings -syn region htmlH1 start="^\s*#" end="$" contains=@Spell -syn region htmlH2 start="^\s*##" end="$" contains=@Spell -syn region htmlH3 start="^\s*###" end="$" contains=@Spell -syn region htmlH4 start="^\s*####" end="$" contains=@Spell -syn region htmlH5 start="^\s*#####" end="$" contains=@Spell -syn region htmlH6 start="^\s*######" end="$" contains=@Spell -syn match htmlH1 /^.\+\n=\+$/ contains=@Spell -syn match htmlH2 /^.\+\n-\+$/ contains=@Spell +syn region htmlH1 start="^\s*#" end="$" contains=mkdLink,mkdInlineURL,@Spell +syn region htmlH2 start="^\s*##" end="$" contains=mkdLink,mkdInlineURL,@Spell +syn region htmlH3 start="^\s*###" end="$" contains=mkdLink,mkdInlineURL,@Spell +syn region htmlH4 start="^\s*####" end="$" contains=mkdLink,mkdInlineURL,@Spell +syn region htmlH5 start="^\s*#####" end="$" contains=mkdLink,mkdInlineURL,@Spell +syn region htmlH6 start="^\s*######" end="$" contains=mkdLink,mkdInlineURL,@Spell +syn match htmlH1 /^.\+\n=\+$/ contains=mkdLink,mkdInlineURL,@Spell +syn match htmlH2 /^.\+\n-\+$/ contains=mkdLink,mkdInlineURL,@Spell "define Markdown groups syn match mkdLineBreak / \+$/ -syn region mkdBlockquote start=/^\s*>/ end=/$/ contains=mkdLineBreak,@Spell +syn region mkdBlockquote start=/^\s*>/ end=/$/ contains=mkdLink,mkdInlineURL,mkdLineBreak,@Spell syn region mkdCode start=/\(\([^\\]\|^\)\\\)\@