MCPcopy Create free account
hub / github.com/TruthHun/BookStack / hookClient

Function hookClient

static/editor.md/lib/codemirror/mode/sql/sql.js:248–257  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

246
247 // short client keyword token
248 function hookClient(stream) {
249 // \N means NULL
250 // ref: http://dev.mysql.com/doc/refman/5.5/en/null-values.html
251 if (stream.eat("N")) {
252 return "atom";
253 }
254 // \g, etc
255 // ref: http://dev.mysql.com/doc/refman/5.5/en/mysql-commands.html
256 return stream.match(/^[a-zA-Z.#!?]/) ? "variable-2" : null;
257 }
258
259 // these keywords are used by all SQL dialects (however, a mode can still overwrite it)
260 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