From 79a695b91d4deef70e33d020f4a9184c91804be6 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Tue, 8 Nov 2016 14:04:19 -0800 Subject: [PATCH] Improve Markdown Syntax Highlighting of Nested Lists (#14634) **bug** Indented lists in markdown stop highlighting after four indents, even if they are nested. **Fix** Allow lists to also match the start of the line instead of the anchor point in their while clause. This ensure that each list element can consume up to three spaces at each level. --- 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 da80a9e0bd8..d2f86783846 100644 --- a/extensions/markdown/syntaxes/markdown.tmLanguage +++ b/extensions/markdown/syntaxes/markdown.tmLanguage @@ -476,7 +476,7 @@ while - \G([ ]{4}|\t|$) + (^|\G)([ ]{4}|\t) begin @@ -503,7 +503,7 @@ while - \G([ ]{4}|\t|$) + (^|\G)([ ]{4}|\t)