From e6d040f77228123bbc38722df0e91c7cf8c3971b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20L=C3=BCnemann?= Date: Thu, 30 Aug 2012 21:16:19 +0300 Subject: [PATCH] Update lib/ace/mode/sql_highlight_rules.js Use lazy match regex for string. Now works for multiple strings in one line. --- lib/ace/mode/sql_highlight_rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ace/mode/sql_highlight_rules.js b/lib/ace/mode/sql_highlight_rules.js index dc099edc..40edf5c9 100644 --- a/lib/ace/mode/sql_highlight_rules.js +++ b/lib/ace/mode/sql_highlight_rules.js @@ -46,10 +46,10 @@ var SqlHighlightRules = function() { regex : "--.*$" }, { token : "string", // " string - regex : '".*"' + regex : '".*?"' }, { token : "string", // ' string - regex : "'.*'" + regex : "'.*?'" }, { token : "constant.numeric", // float regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"