From: Hiroshi Shirosaki Date: Fri, 22 Jan 2016 01:05:25 +0000 (+0900) Subject: Allow fenced code block with extended info strings X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/5daaf1153fce091c6dd86edac525d3650c6835aa?hp=2e524e474d37fe4da0960043d0a46192b297837c Allow fenced code block with extended info strings Fix #111 Fix #210 --- diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 599b334..6bf576f 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -88,8 +88,8 @@ syn match mkdLineBreak / \+$/ syn region mkdBlockquote start=/^\s*>/ end=/$/ contains=mkdLineBreak,@Spell syn region mkdCode start=/\(\([^\\]\|^\)\\\)\@]*\\\@" end="" syn region mkdCode start="]*\\\@" end="" diff --git a/test/syntax.vader b/test/syntax.vader index c55ce76..f7828ab 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -395,6 +395,14 @@ Execute (first = or - in fenced code block is not setex headers): AssertEqual SyntaxOf('='), 'mkdCode' AssertEqual SyntaxOf('-'), 'mkdCode' +Given markdown; +``` {style=""} +a +``` + +Execute (fenced code block with extended info strings): + AssertEqual SyntaxOf('a'), 'mkdCode' + # Code Blocks in pre and code tag Given markdown;