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

Function F

pages/viewScriptSource/libs/highlight.min.js:110–123  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

108},G=Error();function Z(e,t,{key:n}){let i=0;const r=e[n],s={},o={}
109;for(let e=1;e<=t.length;e++)o[e+i]=r[e],s[e+i]=!0,i+=b(t[e-1])
110;e[n]=o,e[n]._emit=s,e[n]._multi=!0}function F(e){(e=>{
111e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,
112delete e.scope)})(e),"string"==typeof e.beginScope&&(e.beginScope={
113_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope
114}),(e=>{if(Array.isArray(e.begin)){
115if(e.skip||e.excludeBegin||e.returnBegin)throw K("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
116G
117;if("object"!=typeof e.beginScope||null===e.beginScope)throw K("beginScope must be object"),
118G;Z(e,e.begin,{key:"beginScope"}),e.begin=E(e.begin,{joinWith:""})}})(e),(e=>{
119if(Array.isArray(e.end)){
120if(e.skip||e.excludeEnd||e.returnEnd)throw K("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
121G
122;if("object"!=typeof e.endScope||null===e.endScope)throw K("endScope must be object"),
123G;Z(e,e.end,{key:"endScope"}),e.end=E(e.end,{joinWith:""})}})(e)}function V(e){
124function t(t,n){
125return RegExp(g(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))
126}class n{constructor(){

Callers

nothing calls this directly

Calls 3

KFunction · 0.70
ZFunction · 0.70
EFunction · 0.70

Tested by

no test coverage detected