(stop: RegExp)
| 296 | } |
| 297 | |
| 298 | private readUntil(stop: RegExp): string { |
| 299 | const start = this.index |
| 300 | while (this.index < this.input.length && !stop.test(this.peek())) this.index++ |
| 301 | return this.input.slice(start, this.index) |
| 302 | } |
| 303 | |
| 304 | private skipWhitespace(): void { |
| 305 | while (/\s/.test(this.peek())) this.index++ |
no test coverage detected