mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
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:
committed by
Kai Maetzel
parent
5169a9806a
commit
90d58f4909
@@ -287,7 +287,7 @@
|
||||
<array>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(?i)(^|\G)(?=<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del).*</\2\s*>\s*$)</string>
|
||||
<string>(?i)(^|\G)\s*(?=<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del).*</\2\s*>\s*$)</string>
|
||||
<key>end</key>
|
||||
<string>$</string>
|
||||
<key>patterns</key>
|
||||
@@ -300,7 +300,7 @@
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(?i)(^|\G)(?=<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del))</string>
|
||||
<string>(?i)(^|\G)\s*(?=<(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>
|
||||
|
||||
Reference in New Issue
Block a user