(stream)
| 242 | |
| 243 | // short client keyword token |
| 244 | function hookClient(stream) { |
| 245 | // \N means NULL |
| 246 | // ref: http://dev.mysql.com/doc/refman/5.5/en/null-values.html |
| 247 | if (stream.eat("N")) { |
| 248 | return "atom"; |
| 249 | } |
| 250 | // \g, etc |
| 251 | // ref: http://dev.mysql.com/doc/refman/5.5/en/mysql-commands.html |
| 252 | return stream.match(/^[a-zA-Z.#!?]/) ? "variable-2" : null; |
| 253 | } |
| 254 | |
| 255 | // these keywords are used by all SQL dialects (however, a mode can still overwrite it) |
| 256 | var sqlKeywords = "alter and as asc between by count create delete desc distinct drop from having in insert into is join like not on or order select set table union update values where "; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…