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

Function hookIdentifierDoublequote

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

Source from the content-addressed store, hash-verified

225
226 // "identifier"
227 function hookIdentifierDoublequote(stream) {
228 // Standard SQL /SQLite identifiers
229 // ref: http://web.archive.org/web/20160813185132/http://savage.net.au/SQL/sql-99.bnf.html#delimited%20identifier
230 // ref: http://sqlite.org/lang_keywords.html
231 var ch;
232 while ((ch = stream.next()) != null) {
233 if (ch == "\"" && !stream.eat("\"")) return "variable-2";
234 }
235 stream.backUp(stream.current().length - 1);
236 return stream.eatWhile(/\w/) ? "variable-2" : null;
237 }
238
239 // variable token
240 function hookVar(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