Added the --- seperator to the paragraph rule

to allow heading-setext.2 rule to be recognized
This commit is contained in:
Eklavya Mirani
2016-08-28 16:31:02 +05:30
parent 45fbd00dd5
commit 9aff1d0f74
2 changed files with 12 additions and 11 deletions

View File

@@ -26,6 +26,10 @@
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#separator</string>
</dict>
<dict>
<key>include</key>
<string>#heading</string>
@@ -202,11 +206,6 @@
<key>include</key>
<string>#paragraph</string>
</dict>
<dict>
<key>include</key>
<string>#separator</string>
</dict>
</array>
<key>repository</key>
<dict>
@@ -413,10 +412,6 @@
<key>include</key>
<string>text.html.basic</string>
</dict>
<dict>
<key>include</key>
<string>#heading-setext</string>
</dict>
</array>
<key>while</key>
<string>(^|\G)(?!\s*$|#|[ ]{0,3}([-*_][ ]{2,}){3,}[ \t]*$\n?|&gt;|[ ]{0,3}[*+-]|[ ]{0,3}[0-9]+\.)</string>
@@ -508,7 +503,7 @@
<!-- seperator [ ]{0,3}([-*_][ ]{0,2}\2){2,}[ \t]*$\n? -->
<!-- list [ ]{0,3}[*+-]([ ]{1,3}|\t) -->
<!-- both are folded together in the expression below -->
<string>(^|\G)(?!\s*$|#|[ ]{0,3}((([-*_][ ]{0,2}\2){2,}[ \t]*$\n?)|([*+-]([ ]{1,3}|\t)))|\s*\[.+?\]:|&gt;)</string>
<string>(^|\G)(?!\s*$|#|[ ]{0,3}((([*_][ ]{0,2}\2){2,}[ \t]*$\n?)|([*+-]([ ]{1,3}|\t)))|\s*\[.+?\]:|&gt;)</string>
</dict>
<key>raw_block</key>
<dict>
@@ -1114,7 +1109,7 @@
<key>separator</key>
<dict>
<key>match</key>
<string>(^|\G)[ ]{0,3}([-*_])([ ]{0,2}\2){2,}[ \t]*$\n?</string>
<string>(^|\G)[ ]{0,3}([*-_])([ ]{0,2}\2){2,}[ \t]*$\n?</string>
<key>name</key>
<string>meta.separator.markdown</string>
</dict>