MCPcopy Create free account
hub / github.com/sql-js/sql.js / hookClient

Function hookClient

GUI/codemirror/mode/sql/sql.js:244–253  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

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 ";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…