From add0f3f5a2a2ad527c4296dda89654b87859ca3b Mon Sep 17 00:00:00 2001 From: Jonathan Camile Date: Mon, 10 Oct 2011 17:19:17 +0200 Subject: [PATCH] Sql Mode: Fixed string highlighting --- lib/ace/mode/sql_highlight_rules.js | 32 ++--------------------------- 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/lib/ace/mode/sql_highlight_rules.js b/lib/ace/mode/sql_highlight_rules.js index a1b1ce77..3b5e1882 100644 --- a/lib/ace/mode/sql_highlight_rules.js +++ b/lib/ace/mode/sql_highlight_rules.js @@ -45,22 +45,12 @@ var SqlHighlightRules = function() { "start" : [ { token : "comment", regex : "--.*$" - }, { - token : "string", // multi line " string start - merge : true, - regex : '".*$', - next : "qqstring" }, { token : "string", // " string - regex : '"(?:[^\\\\]|\\\\.)*?"' - }, { - token : "string", // multi line ' string start - merge : true, - regex : "'.*$", - next : "qstring" + regex : '".*"' }, { token : "string", // ' string - regex : "'(?:[^\\\\]|\\\\.)*?'" + regex : "'.*'" }, { token : "constant.numeric", // float regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b" @@ -89,24 +79,6 @@ var SqlHighlightRules = function() { }, { token : "text", regex : "\\s+" - } ], - "qqstring" : [ { - token : "string", // multi line " string end - regex : '(?:[^\\\\]|\\\\.)*?"', - next : "start" - }, { - token : "string", - merge : true, - regex : '.+' - } ], - "qstring" : [ { - token : "string", // multi line ' string end - regex : "(?:[^\\\\]|\\\\.)*?'", - next : "start" - }, { - token : "string", - merge : true, - regex : '.+' } ] }; };