(e)
| 141 | n.compile(),this.multiRegexes[e]=n,n}resumingScanAtSamePosition(){ |
| 142 | return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,n){ |
| 143 | this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){ |
| 144 | const n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex |
| 145 | ;let t=n.exec(e) |
| 146 | ;if(this.resumingScanAtSamePosition())if(t&&t.index===this.lastIndex);else{ |
| 147 | const n=this.getMatcher(0);n.lastIndex=this.lastIndex+1,t=n.exec(e)} |
| 148 | return t&&(this.regexIndex+=t.position+1, |
| 149 | this.regexIndex===this.count&&this.considerAll()),t}} |
| 150 | if(e.compilerExtensions||(e.compilerExtensions=[]), |
| 151 | e.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 |
nothing calls this directly
no test coverage detected