From d8bfb94cbd08da102e3b888f9280dc66744be6cc Mon Sep 17 00:00:00 2001 From: benweet Date: Tue, 19 Nov 2013 23:01:54 +0000 Subject: [PATCH] Fixed 1851 latex delimiter in ACE syntax highlighter --- public/res/libs/ace_mode_highlight_rules.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/res/libs/ace_mode_highlight_rules.js b/public/res/libs/ace_mode_highlight_rules.js index e6fc4c9d..17391ec2 100644 --- a/public/res/libs/ace_mode_highlight_rules.js +++ b/public/res/libs/ace_mode_highlight_rules.js @@ -76,13 +76,13 @@ var MarkdownHighlightRules = function() { }, { // Escaped $ token : "text", regex : "\\\\\\$", - }, { // Math inline - token : ["constant.language.escape", "keyword", "constant.language.escape"], - regex : "(\\$)(.*)(\\$)" }, { // Math block token : "constant.language.escape", regex : "\\$\\$|\\\\\\\\\\[|\\\\\\\\\\\\\\\\\\(", next : "mathblock" + }, { // Math inline + token : ["constant.language.escape", "keyword", "constant.language.escape"], + regex : "(\\$)(.*)(\\$)" }, { // LaTeX block token : ["keyword", "text"], regex : "(\\\\?\\\\begin)(\\{[a-z]*\\*?\\})",