Small tweaks to LaTeX mode

This commit is contained in:
James Allen 2014-08-20 10:02:38 +01:00
parent cd51ba5f25
commit ab6cd36f27

View file

@ -12,10 +12,10 @@ var LatexHighlightRules = function() {
regex : "%.*$" regex : "%.*$"
}, { }, {
token : ["keyword", "lparen", "variable.parameter", "rparen", "lparen", "storage.type", "rparen"], token : ["keyword", "lparen", "variable.parameter", "rparen", "lparen", "storage.type", "rparen"],
regex : "(\\\\(?:documentclass|usepackage|input))(?:(\\[)([^\\]]*)(\\]))?({)([^}]*)(})" regex : "(\\\\(?:documentclass|usepackage))(?:(\\[)([^\\]]*)(\\]))?({)([^}]*)(})"
}, { }, {
token : ["keyword","lparen", "variable.parameter", "rparen"], token : ["keyword","lparen", "variable.parameter", "rparen"],
regex : "(\\\\label)(?:({)([^}]*)(}))?" regex : "(\\\\(?:label|ref|cite(?:[^{]*)))(?:({)([^}]*)(}))?"
}, { }, {
token : ["storage.type", "lparen", "variable.parameter", "rparen"], token : ["storage.type", "lparen", "variable.parameter", "rparen"],
regex : "(\\\\(?:begin|end))({)(\\w*)(})" regex : "(\\\\(?:begin|end))({)(\\w*)(})"