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

Function hookIdentifier

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

Source from the content-addressed store, hash-verified

207
208 // `identifier`
209 function hookIdentifier(stream) {
210 // MySQL/MariaDB identifiers
211 // ref: http://dev.mysql.com/doc/refman/5.6/en/identifier-qualifiers.html
212 var ch;
213 while ((ch = stream.next()) != null) {
214 if (ch == "`" && !stream.eat("`")) return "variable-2";
215 }
216 stream.backUp(stream.current().length - 1);
217 return stream.eatWhile(/\w/) ? "variable-2" : null;
218 }
219
220 // variable token
221 function hookVar(stream) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected