Merge pull request #2259 from jpallen/patch-2

Highlight \ref, \vref, \cite and \citep as labels
This commit is contained in:
Harutyun Amirjanyan 2014-11-28 06:33:29 -08:00
commit 16cdd9ddb3

View file

@ -19,7 +19,7 @@ var LatexHighlightRules = function() {
}, {
// A label
token : ["keyword","lparen", "variable.parameter", "rparen"],
regex : "(\\\\label)(?:({)([^}]*)(}))?"
regex : "(\\\\(?:label|v?ref|cite(?:[^{]*)))(?:({)([^}]*)(}))?"
}, {
// A block
token : ["storage.type", "lparen", "variable.parameter", "rparen"],