mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fix highlighting of dollar amount at start of line in md files
Fixes #136535
This commit is contained in:
parent
0eee604f01
commit
b614fb5db8
|
@ -48,7 +48,7 @@
|
|||
"single_dollar_math_block": {
|
||||
"name": "markup.math.block.markdown",
|
||||
"contentName": "meta.embedded.math.markdown",
|
||||
"begin": "(?<=^\\s*)(\\${1})(?![^$]*\\${1})",
|
||||
"begin": "(?<=^\\s*)(\\$)(?![^$]*\\$|\\d)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.math.begin.markdown"
|
||||
|
|
|
@ -159,3 +159,11 @@ Should be highlighted $\frac{1}{2}$.
|
|||
Should not be highlighted $\frac{1}{2}$text
|
||||
|
||||
Should not be highlighted $\frac{1}{2}$10
|
||||
|
||||
<!-- Should not highlight dollar amount at start of line #136535 -->
|
||||
|
||||
$12.45
|
||||
|
||||
$12.45 x
|
||||
|
||||
x $12.45
|
||||
|
|
|
@ -6466,5 +6466,71 @@
|
|||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "<!--",
|
||||
"t": "text.html.markdown comment.block.html punctuation.definition.comment.html",
|
||||
"r": {
|
||||
"dark_plus": "comment: #6A9955",
|
||||
"light_plus": "comment: #008000",
|
||||
"dark_vs": "comment: #6A9955",
|
||||
"light_vs": "comment: #008000",
|
||||
"hc_black": "comment: #7CA668"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " Should not highlight dollar amount at start of line #136535 ",
|
||||
"t": "text.html.markdown comment.block.html",
|
||||
"r": {
|
||||
"dark_plus": "comment: #6A9955",
|
||||
"light_plus": "comment: #008000",
|
||||
"dark_vs": "comment: #6A9955",
|
||||
"light_vs": "comment: #008000",
|
||||
"hc_black": "comment: #7CA668"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "-->",
|
||||
"t": "text.html.markdown comment.block.html punctuation.definition.comment.html",
|
||||
"r": {
|
||||
"dark_plus": "comment: #6A9955",
|
||||
"light_plus": "comment: #008000",
|
||||
"dark_vs": "comment: #6A9955",
|
||||
"light_vs": "comment: #008000",
|
||||
"hc_black": "comment: #7CA668"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "$12.45",
|
||||
"t": "text.html.markdown meta.paragraph.markdown",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "$12.45 x",
|
||||
"t": "text.html.markdown meta.paragraph.markdown",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "x $12.45",
|
||||
"t": "text.html.markdown meta.paragraph.markdown",
|
||||
"r": {
|
||||
"dark_plus": "default: #D4D4D4",
|
||||
"light_plus": "default: #000000",
|
||||
"dark_vs": "default: #D4D4D4",
|
||||
"light_vs": "default: #000000",
|
||||
"hc_black": "default: #FFFFFF"
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in a new issue