MCPcopy Create free account
hub / github.com/idank/explainshell / Z

Function Z

explainshell/web/static/js/highlight.min.js:111–124  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

WFunction · 0.70
FFunction · 0.70
mFunction · 0.70

Tested by

no test coverage detected