From ab6cd36f275cd7c214453b48167a25a0f01ddb4d Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 20 Aug 2014 10:02:38 +0100 Subject: [PATCH] Small tweaks to LaTeX mode --- services/web/public/js/ace/mode-latex.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/public/js/ace/mode-latex.js b/services/web/public/js/ace/mode-latex.js index dd8194c1cd..84d5b8048b 100644 --- a/services/web/public/js/ace/mode-latex.js +++ b/services/web/public/js/ace/mode-latex.js @@ -12,10 +12,10 @@ var LatexHighlightRules = function() { regex : "%.*$" }, { token : ["keyword", "lparen", "variable.parameter", "rparen", "lparen", "storage.type", "rparen"], - regex : "(\\\\(?:documentclass|usepackage|input))(?:(\\[)([^\\]]*)(\\]))?({)([^}]*)(})" + regex : "(\\\\(?:documentclass|usepackage))(?:(\\[)([^\\]]*)(\\]))?({)([^}]*)(})" }, { token : ["keyword","lparen", "variable.parameter", "rparen"], - regex : "(\\\\label)(?:({)([^}]*)(}))?" + regex : "(\\\\(?:label|ref|cite(?:[^{]*)))(?:({)([^}]*)(}))?" }, { token : ["storage.type", "lparen", "variable.parameter", "rparen"], regex : "(\\\\(?:begin|end))({)(\\w*)(})"