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

Function processBuffer

documentation/javascript/application.js:463–471  ·  view source on GitHub ↗
(buffer, mode)

Source from the content-addressed store, hash-verified

461 }
462
463 function processBuffer(buffer, mode) {
464 if (mode.subLanguage && languages[mode.subLanguage]) {
465 var result = highlight(mode.subLanguage, buffer);
466 keyword_count += result.keyword_count;
467 return result.value;
468 } else {
469 return processKeywords(buffer, mode);
470 }
471 }
472
473 function startNewMode(mode, lexem) {
474 var markup = mode.className?'<span class="' + mode.className + '">':'';

Callers 1

processModeInfoFunction · 0.85

Calls 2

highlightFunction · 0.85
processKeywordsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…