From 5d8a9c6b42c7deac13cc640562e9872a323250c0 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Thu, 10 Nov 2016 16:42:32 -0800 Subject: [PATCH] Fix Markdown Colorization of Indented Block Quotes (#15220) Issue #12948 **Bug** - Block quotes ar not colorized if they start with a space. Up to three spaces should be supported (4 spaces makes it a code block) - The second line of blocks quotes should be able to have any number of leading spaces. **Fix** Add support for both of these cases Closes #12948 --- extensions/markdown/syntaxes/markdown.tmLanguage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/markdown/syntaxes/markdown.tmLanguage b/extensions/markdown/syntaxes/markdown.tmLanguage index abd160f5678..aba9afe36c6 100644 --- a/extensions/markdown/syntaxes/markdown.tmLanguage +++ b/extensions/markdown/syntaxes/markdown.tmLanguage @@ -216,7 +216,7 @@ blockquote begin - (^|\G)(>) ? + (^|\G)[ ]{0,3}(>) ? captures 2 @@ -235,7 +235,7 @@ while - (^|\G)(>) ? + (^|\G)\s*(>) ? heading -- GitLab