(stream)
| 213 | |
| 214 | // `identifier` |
| 215 | function hookIdentifier(stream) { |
| 216 | // MySQL/MariaDB identifiers |
| 217 | // ref: http://dev.mysql.com/doc/refman/5.6/en/identifier-qualifiers.html |
| 218 | var ch; |
| 219 | while ((ch = stream.next()) != null) { |
| 220 | if (ch == "`" && !stream.eat("`")) return "variable-2"; |
| 221 | } |
| 222 | stream.backUp(stream.current().length - 1); |
| 223 | return stream.eatWhile(/\w/) ? "variable-2" : null; |
| 224 | } |
| 225 | |
| 226 | // "identifier" |
| 227 | function hookIdentifierDoublequote(stream) { |