(s, o, i)
| 19453 | })) |
| 19454 | var _ = 'hljs-' |
| 19455 | function highlight(s, o, i) { |
| 19456 | var w, |
| 19457 | x = a.configure({}), |
| 19458 | C = (i || {}).prefix |
| 19459 | if ('string' != typeof s) throw u('Expected `string` for name, got `%s`', s) |
| 19460 | if (!a.getLanguage(s)) throw u('Unknown language: `%s` is not registered', s) |
| 19461 | if ('string' != typeof o) throw u('Expected `string` for value, got `%s`', o) |
| 19462 | if ( |
| 19463 | (null == C && (C = _), |
| 19464 | a.configure({ __emitter: Emitter, classPrefix: C }), |
| 19465 | (w = a.highlight(o, { language: s, ignoreIllegals: !0 })), |
| 19466 | a.configure(x || {}), |
| 19467 | w.errorRaised) |
| 19468 | ) |
| 19469 | throw w.errorRaised |
| 19470 | return { |
| 19471 | relevance: w.relevance, |
| 19472 | language: w.language, |
| 19473 | value: w.emitter.rootNode.children, |
| 19474 | } |
| 19475 | } |
| 19476 | function Emitter(s) { |
| 19477 | ;((this.options = s), |
| 19478 | (this.rootNode = { children: [] }), |
no test coverage detected