MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script /

Class

pages/viewScriptSource/libs/highlight.min.js:18–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}function r(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t]
17;return t.forEach((e=>{for(const t in e)n[t]=e[t]})),n}
18const s=e=>!!e.scope||e.sublanguage&&e.language;class o{constructor(e,t){
19this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){
20this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=""
21;t=e.sublanguage?"language-"+e.language:((e,{prefix:t})=>{if(e.includes(".")){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected