From 265c025bbf13231d2a5ef6e12eb8f06150cea975 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Tue, 20 Sep 2016 18:25:31 -0700 Subject: [PATCH] Use blankline to delimit html block in markdown colorization **Bug** Issue #7725 Nested html is not colorized properly for markdown: ```md
nested div
``` **Fix** According to the commonmark spec, general html blocks end with a blank line: http://spec.commonmark.org/0.25/#html-blocks This change relaxes the while so that we only check for blanklines, instead of trying to match the start tag (which fails when nesting elements) --- extensions/markdown/syntaxes/markdown.tmLanguage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/markdown/syntaxes/markdown.tmLanguage b/extensions/markdown/syntaxes/markdown.tmLanguage index dcb2aa17c24..70c52939a51 100644 --- a/extensions/markdown/syntaxes/markdown.tmLanguage +++ b/extensions/markdown/syntaxes/markdown.tmLanguage @@ -309,7 +309,7 @@ while - \G(?!</\2\s*>) + ^(?!\s*$) -- GitLab