Merge pull request #1839 from overleaf/ns-add-vref

add vref

GitOrigin-RevId: aa311141873f818830dcfa5ea63f0420549b5dd9
This commit is contained in:
Timothée Alby 2019-06-04 13:11:02 +02:00 committed by sharelatex
parent a8edafe104
commit 2f14426876

View file

@ -15,7 +15,7 @@ var LatexHighlightRules = function() {
regex : "(\\\\(?:documentclass|usepackage|input))(?:(\\[)([^\\]]*)(\\]))?({)([^}]*)(})" regex : "(\\\\(?:documentclass|usepackage|input))(?:(\\[)([^\\]]*)(\\]))?({)([^}]*)(})"
}, { }, {
token : ["keyword", "lparen", "variable.parameter", "rparen"], token : ["keyword", "lparen", "variable.parameter", "rparen"],
regex : "(\\\\(?:label|(?:eq|page|c|C)?ref|cite(?:[^{]*)))(?:({)([^}]*)(}))?" regex : "(\\\\(?:label|(?:eq|page|v|c|C)?ref|cite(?:[^{]*)))(?:({)([^}]*)(}))?"
}, { }, {
token : ["storage.type", "lparen", "variable.parameter", "rparen"], token : ["storage.type", "lparen", "variable.parameter", "rparen"],
regex : "(\\\\begin)({)(verbatim)(})", regex : "(\\\\begin)({)(verbatim)(})",