adjustments to latex mode
This commit is contained in:
parent
08bf3696e7
commit
b8f135a37d
1 changed files with 4 additions and 2 deletions
|
|
@ -11,16 +11,18 @@ var LatexHighlightRules = function() {
|
|||
token : "keyword",
|
||||
regex : "\\\\(documentclass|usepackage|label)"
|
||||
},{
|
||||
// Escaped character (including new line)
|
||||
token : "constant.character.escape",
|
||||
regex : "\\\\{2}"
|
||||
regex : "\\\\[^a-zA-Z]"
|
||||
},{
|
||||
// A block
|
||||
token : "storage.type",
|
||||
regex : "\\\\(:?begin|end)",
|
||||
next : "block"
|
||||
},{
|
||||
// A tex command e.g. \foo
|
||||
token : "storage.type",
|
||||
regex : "\\\\(?:[^a-zA-Z]|[a-zA-Z]+)"
|
||||
regex : "\\\\[a-zA-Z\\d]+"
|
||||
}, {
|
||||
// Curly and square braces
|
||||
token : "lparen",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue