MCPcopy Index your code
hub / github.com/documentcloud/visualsearch / processBuffer

Function processBuffer

docs/assets/highlight.js:254–262  ·  view source on GitHub ↗
(buffer, mode)

Source from the content-addressed store, hash-verified

252 }
253
254 function processBuffer(buffer, mode) {
255 if (mode.subLanguage && languages[mode.subLanguage]) {
256 var result = highlight(mode.subLanguage, buffer);
257 keyword_count += result.keyword_count;
258 return result.value;
259 } else {
260 return processKeywords(buffer, mode);
261 }
262 }
263
264 function startNewMode(mode, lexem) {
265 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