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:
parent
0a14538bbe
commit
e6d040f772
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue