Lines 112-152javascript
112e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,
113delete 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)){
116if(e.skip||e.excludeBegin||e.returnBegin)throw K("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
118;if("object"!=typeof e.beginScope||null===e.beginScope)throw K("beginScope must be object"),
119G;Z(e,e.begin,{key:"beginScope"}),e.begin=h(e.begin,{joinWith:""})}})(e),(e=>{
120if(Array.isArray(e.end)){
121if(e.skip||e.excludeEnd||e.returnEnd)throw K("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
123;if("object"!=typeof e.endScope||null===e.endScope)throw K("endScope must be object"),
124G;Z(e,e.end,{key:"endScope"}),e.end=h(e.end,{joinWith:""})}})(e)}function Q(e){
126return RegExp(c(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(t?"g":""))
127}class t{constructor(){
128this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}
130n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]),
131this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null)
132;const e=this.regexes.map((e=>e[1]));this.matcherRe=n(h(e,{joinWith:"|"
133}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex
134;const n=this.matcherRe.exec(e);if(!n)return null
HighChild Process
Package source references child process execution.
dist/web/client/vendor/highlight.min.jsView on unpkg · L132 135;const t=n.findIndex(((e,n)=>n>0&&void 0!==e)),a=this.matchIndexes[t]
136;return n.splice(0,t),Object.assign(n,a)}}class i{constructor(){
137this.rules=[],this.multiRegexes=[],
138this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){
139if(this.multiRegexes[e])return this.multiRegexes[e];const n=new t
140;return this.rules.slice(e).forEach((([e,t])=>n.addRule(e,t))),
141n.compile(),this.multiRegexes[e]=n,n}resumingScanAtSamePosition(){
142return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,n){
143this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){
144const n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex
146;if(this.resumingScanAtSamePosition())if(t&&t.index===this.lastIndex);else{
147const n=this.getMatcher(0);n.lastIndex=this.lastIndex+1,t=n.exec(e)}
148return t&&(this.regexIndex+=t.position+1,
149this.regexIndex===this.count&&this.considerAll()),t}}
150if(e.compilerExtensions||(e.compilerExtensions=[]),
151e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")
152;return e.classNameAliases=a(e.classNameAliases||{}),function t(r,s){const o=r