Fix wrong language scope in markdown inline math expression (#172957)

Let 3rd matching group be an end

Previously, the first and third group was
defined as beginning. This is not
true as the first group of the regular
expression is the beginning of the math
inline markdown expression and the third
group the _end_. Once the third group is
correctly assigned, its language scope can
be changed accordingly.
pull/173036/head
robincaloudis 2023-02-01 15:44:37 +01:00 committed by GitHub
parent e02c6ad1fd
commit 63b07dbd7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -52,7 +52,8 @@
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.math.markdown": "latex"
"meta.embedded.math.markdown": "latex",
"punctuation.definition.math.end.markdown": "latex"
}
}
],

View File

@ -29,7 +29,7 @@
]
},
"3": {
"name": "punctuation.definition.math.begin.markdown"
"name": "punctuation.definition.math.end.markdown"
}
}
},
@ -49,7 +49,7 @@
]
},
"3": {
"name": "punctuation.definition.math.begin.markdown"
"name": "punctuation.definition.math.end.markdown"
}
}
},