From: James Blanding Date: Fri, 28 Feb 2014 17:16:53 +0000 (-0500) Subject: Merge pull request #67 from xiaket/master X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/b106425926aabf68ab355abe34aeec0084797058?hp=8b892fdff239355a89871f7a094cbc85ea5fc736 Merge pull request #67 from xiaket/master Indented fenced code blocks can now be correctly recognized. --- diff --git a/syntax/mkd.vim b/syntax/mkd.vim index 82778c2..d6233d2 100644 --- a/syntax/mkd.vim +++ b/syntax/mkd.vim @@ -69,7 +69,7 @@ syn match mkdLineBreak / \+$/ syn region mkdBlockquote start=/^\s*>/ end=/$/ contains=mkdLineBreak,mkdLineContinue,@Spell syn region mkdCode start=/\(\([^\\]\|^\)\\\)\@]*>" end="" syn region mkdCode start="]*>" end="" syn region mkdFootnote start="\[^" end="\]" diff --git a/test/syntax.md b/test/syntax.md index 8a7421d..9c849e7 100644 --- a/test/syntax.md +++ b/test/syntax.md @@ -140,6 +140,16 @@ Fenced code blocks TODO add option to turn ON/OFF: fenced code block ``` +Fenced code living in an indented environment is correctly highlighted: + +1. run this command to do this: + + ``` +some command + ``` + +2. Subsequent list items are correctly highlighted. + Fenced code block with language: ```ruby