MCPcopy
hub / github.com/PrismJS/prism / withModifier

Function withModifier

components/prism-textile.js:12–18  ·  view source on GitHub ↗

* @param {string} source * @param {string} [flags]

(source, flags)

Source from the content-addressed store, hash-verified

10 * @param {string} [flags]
11 */
12 function withModifier(source, flags) {
13 return RegExp(
14 source
15 .replace(/<MOD>/g, function () { return '(?:' + modifierRegex + ')'; })
16 .replace(/<PAR>/g, function () { return '(?:' + parenthesesRegex + ')'; }),
17 flags || '');
18 }
19
20 var modifierTokens = {
21 'css': {

Callers 1

prism-textile.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected