From: Alex Beal Date: Wed, 14 Mar 2012 23:02:20 +0000 (-0600) Subject: Added a rule that covers "Github Flavored Markdown" (GFM) code blocks X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/a6bb045d8a5a09e35400cba0514ca0a8f79128fa?ds=inline Added a rule that covers "Github Flavored Markdown" (GFM) code blocks GFM takes three back ticks to start a code block. It can be followed with a word specifying the language. It then ends with three back ticks. http://github.github.com/github-flavored-markdown/ --- diff --git a/syntax/mkd.vim b/syntax/mkd.vim index c6ea381..51f891b 100644 --- a/syntax/mkd.vim +++ b/syntax/mkd.vim @@ -70,6 +70,7 @@ syn match mkdCode /^\s*\n\(\(\s\{4,}[^ ]\|\t\+[^\t]\).*\n\)\+/ syn match mkdLineBreak / \+$/ syn region mkdCode start=/\\\@/ end=/$/ contains=mkdLineBreak,mkdLineContinue,@Spell syn region mkdCode start="]*>" end="" syn region mkdCode start="]*>" end=""