Merge pull request #1838 from overleaf/ns-ref-highlighting

highlight arguments of known ref commands

GitOrigin-RevId: 6c95ff5a973c28788c569fe71da024692df2d69e
This commit is contained in:
nate stemen 2019-06-03 14:16:54 -04:00 committed by sharelatex
parent 9226237a36
commit 113670f864

View file

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