allow comments in equation, default token in equation
This commit is contained in:
parent
114166a0ce
commit
2f56fb208c
1 changed files with 4 additions and 2 deletions
|
|
@ -47,6 +47,9 @@ var LatexHighlightRules = function() {
|
|||
next : "equation"
|
||||
}],
|
||||
"equation" : [{
|
||||
token : "comment",
|
||||
regex : "%.*$"
|
||||
},{
|
||||
token : "string",
|
||||
regex : "\\${1,2}",
|
||||
next : "start"
|
||||
|
|
@ -54,8 +57,7 @@ var LatexHighlightRules = function() {
|
|||
token : "constant.character.escape",
|
||||
regex : "\\\\(?:[^a-zA-Z]|[a-zA-Z]+)"
|
||||
},{
|
||||
token : "string",
|
||||
regex : "."
|
||||
defaultToken : "string"
|
||||
}]
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue