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

Function keywordMatch

docs/assets/highlight.js:219–229  ·  view source on GitHub ↗
(mode, match)

Source from the content-addressed store, hash-verified

217 }
218
219 function keywordMatch(mode, match) {
220 var match_str = language.case_insensitive ? match[0].toLowerCase() : match[0]
221 for (var className in mode.keywordGroups) {
222 if (!mode.keywordGroups.hasOwnProperty(className))
223 continue;
224 var value = mode.keywordGroups[className].hasOwnProperty(match_str);
225 if (value)
226 return [className, value];
227 }
228 return false;
229 }
230
231 function processKeywords(buffer, mode) {
232 if (!mode.keywords)

Callers 1

processKeywordsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected