MCPcopy Create free account
hub / github.com/box/Anemometer / createSimpleLexer

Function createSimpleLexer

js/prettify.js:656–782  ·  view source on GitHub ↗

Given triples of [style, pattern, context] returns a lexing function, * The lexing function interprets the patterns to find token boundaries and * returns a decoration list of the form * [index_0, style_0, index_1, style_1, ..., index_n, style_n] * where index_n is an index into the

(shortcutStylePatterns, fallthroughStylePatterns)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

sourceDecoratorFunction · 0.85
prettify.jsFile · 0.85

Calls 1

combinePrefixPatternsFunction · 0.85

Tested by

no test coverage detected