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

Function eatModeChunk

documentation/javascript/application.js:419–430  ·  view source on GitHub ↗
(value, index)

Source from the content-addressed store, hash-verified

417 }
418
419 function eatModeChunk(value, index) {
420 var mode = modes[modes.length - 1];
421 if (!mode.terminators) {
422 mode.terminators = compileTerminators(mode, language);
423 }
424 mode.terminators.lastIndex = index;
425 var match = mode.terminators.exec(value);
426 if (match)
427 return [value.substr(index, match.index - index), match[0], false];
428 else
429 return [value.substr(index), '', true];
430 }
431
432 function keywordMatch(mode, match) {
433 var match_str = language.case_insensitive ? match[0].toLowerCase() : match[0];

Callers 1

highlightFunction · 0.85

Calls 1

compileTerminatorsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…