Merge pull request #2259 from jpallen/patch-2
Highlight \ref, \vref, \cite and \citep as labels
This commit is contained in:
commit
16cdd9ddb3
1 changed files with 1 additions and 1 deletions
|
|
@ -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"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue