Update lib/ace/mode/sql_highlight_rules.js

Use lazy match regex for string. Now works for multiple strings in one line.
This commit is contained in:
Matthias Lünemann 2012-08-30 21:16:19 +03:00
commit e6d040f772

View file

@ -46,10 +46,10 @@ var SqlHighlightRules = function() {
regex : "--.*$" regex : "--.*$"
}, { }, {
token : "string", // " string token : "string", // " string
regex : '".*"' regex : '".*?"'
}, { }, {
token : "string", // ' string token : "string", // ' string
regex : "'.*'" regex : "'.*?'"
}, { }, {
token : "constant.numeric", // float token : "constant.numeric", // float
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b" regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"