mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +01:00
Highlight Markdown Image Starting ! Punctuator (#12841)
* Highlight Markdown Image Starting ! Puctuator Issue #12835 Adds highlighting for the `!` that defines a markdown image link. This is colored the same as the `[` after it. Closes #12835 * Fixed highlight test
This commit is contained in:
@@ -1434,8 +1434,7 @@
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>(?x:
|
||||
\! # Images start with !
|
||||
(\[)((?<square>[^\[\]\\]|\\.|\[\g<square>*+\])*+)(\])
|
||||
(\!\[)((?<square>[^\[\]\\]|\\.|\[\g<square>*+\])*+)(\])
|
||||
# Match the link text.
|
||||
([ ])? # Space not allowed
|
||||
(\() # Opening paren for url
|
||||
@@ -1487,7 +1486,7 @@
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>\!(\[)((?<square>[^\[\]\\]|\\.|\[\g<square>*+\])*+)(\])[ ]?(\[)(.*?)(\])</string>
|
||||
<string>(\!\[)((?<square>[^\[\]\\]|\\.|\[\g<square>*+\])*+)(\])[ ]?(\[)(.*?)(\])</string>
|
||||
<key>name</key>
|
||||
<string>meta.image.reference.markdown</string>
|
||||
</dict>
|
||||
|
||||
Reference in New Issue
Block a user