Allow spaces in katex commands

Fixes #128411
This commit is contained in:
Matt Bierner
2021-10-14 16:00:00 -07:00
parent 03ce307444
commit 41df0673f8
3 changed files with 186 additions and 2 deletions

View File

@@ -32,7 +32,7 @@
},
{
"name": "meta.function.math.tex",
"begin": "((\\\\)([a-zA-Z_]+))(\\{)",
"begin": "((\\\\)([a-zA-Z_]+))\\s*(\\{)",
"beginCaptures": {
"1": {
"name": "storage.type.function.math.tex"
@@ -74,7 +74,7 @@
"name": "punctuation.definition.constant.math.tex"
}
},
"match": "(\\\\)(?!begin\\{|verb)([A-Za-z]+)",
"match": "(\\\\)(?!begin\\*\\{|verb)([A-Za-z]+)",
"name": "constant.other.general.math.tex"
},
{