From 113670f86459ce26fdcfc3167a0f1df6e2d0d539 Mon Sep 17 00:00:00 2001 From: nate stemen Date: Mon, 3 Jun 2019 14:16:54 -0400 Subject: [PATCH] Merge pull request #1838 from overleaf/ns-ref-highlighting highlight arguments of known ref commands GitOrigin-RevId: 6c95ff5a973c28788c569fe71da024692df2d69e --- services/web/public/js/ace-1.4.4/mode-latex.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/public/js/ace-1.4.4/mode-latex.js b/services/web/public/js/ace-1.4.4/mode-latex.js index 424e23e14c..7af146c078 100644 --- a/services/web/public/js/ace-1.4.4/mode-latex.js +++ b/services/web/public/js/ace-1.4.4/mode-latex.js @@ -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)(})",