From 5daaf1153fce091c6dd86edac525d3650c6835aa Mon Sep 17 00:00:00 2001 From: Hiroshi Shirosaki Date: Fri, 22 Jan 2016 10:05:25 +0900 Subject: [PATCH 1/1] Allow fenced code block with extended info strings Fix #111 Fix #210 --- syntax/markdown.vim | 4 ++-- test/syntax.vader | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) 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; -- 2.39.5