Permalink
Browse files

Merge pull request #896 from luenemam/master

SQL Highlighting works for multiple strings in one line.
  • Loading branch information...
2 parents 86f4e1f + e6d040f commit 760f19dfc944516da78a02b32b4745b8e8db70e2 @nightwing nightwing committed Sep 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/ace/mode/sql_highlight_rules.js
@@ -51,10 +51,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"

0 comments on commit 760f19d

Please sign in to comment.