提交 79a695b9 编写于 作者: M Matt Bierner 提交者: GitHub

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.
上级 7b2b4b93
......@@ -476,7 +476,7 @@
</dict>
</array>
<key>while</key>
<string>\G([ ]{4}|\t|$)</string>
<string>(^|\G)([ ]{4}|\t)</string>
</dict>
<dict>
<key>begin</key>
......@@ -503,7 +503,7 @@
</dict>
</array>
<key>while</key>
<string>\G([ ]{4}|\t|$)</string>
<string>(^|\G)([ ]{4}|\t)</string>
</dict>
</array>
</dict>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册