| 225 | |
| 226 | // "identifier" |
| 227 | function hookIdentifierDoublequote(stream) { |
| 228 | // Standard SQL /SQLite identifiers |
| 229 | // ref: http://web.archive.org/web/20160813185132/http://savage.net.au/SQL/sql-99.bnf.html#delimited%20identifier |
| 230 | // ref: http://sqlite.org/lang_keywords.html |
| 231 | var ch; |
| 232 | while ((ch = stream.next()) != null) { |
| 233 | if (ch == "\"" && !stream.eat("\"")) return "variable-2"; |
| 234 | } |
| 235 | stream.backUp(stream.current().length - 1); |
| 236 | return stream.eatWhile(/\w/) ? "variable-2" : null; |
| 237 | } |
| 238 | |
| 239 | // variable token |
| 240 | function hookVar(stream) { |