From 5c9ce6b5230654c73d3bc3311f9dff7c4404f228 Mon Sep 17 00:00:00 2001 From: Hiroshi Shirosaki Date: Thu, 17 Jan 2019 14:12:44 +0900 Subject: [PATCH] Fix code quotes when ending with backslash Backslash inside of a backtick should not escape a backtick. Fix #311 --- syntax/markdown.vim | 2 +- test/syntax.vader | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 86b10b0..d0077a4 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -98,7 +98,7 @@ syn match htmlH2 /^.\+\n-\+$/ contains=mkdLink,mkdInlineURL,@Spell "define Markdown groups syn match mkdLineBreak / \+$/ syn region mkdBlockquote start=/^\s*>/ end=/$/ contains=mkdLink,mkdInlineURL,mkdLineBreak,@Spell -execute 'syn region mkdCode matchgroup=mkdCodeDelimiter start=/\(\([^\\]\|^\)\\\)\@