Fix colorization of html prefixed by spaces in markdown files

Issue #12289

**Bug**
Html tags prefixed by 1 to 4 spaces are not colorized properly

**Fix**
Consume optional leading whitespace when matching html tags instead of only starting from previous match location

closes #12289
This commit is contained in:
Matt Bierner
2016-09-19 16:11:12 -07:00
committed by Kai Maetzel
parent 5169a9806a
commit 90d58f4909

View File

@@ -287,7 +287,7 @@
<array>
<dict>
<key>begin</key>
<string>(?i)(^|\G)(?=&lt;(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del).*&lt;/\2\s*&gt;\s*$)</string>
<string>(?i)(^|\G)\s*(?=&lt;(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del).*&lt;/\2\s*&gt;\s*$)</string>
<key>end</key>
<string>$</string>
<key>patterns</key>
@@ -300,7 +300,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?i)(^|\G)(?=&lt;(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del))</string>
<string>(?i)(^|\G)\s*(?=&lt;(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del))</string>
<key>patterns</key>
<array>
<dict>