MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / hookIdentifier

Function hookIdentifier

lib/web/CodeMirror/mode/sql/sql.js:215–224  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 5

eatMethod · 0.80
backUpMethod · 0.80
currentMethod · 0.80
eatWhileMethod · 0.80
nextMethod · 0.65

Tested by

no test coverage detected