(condition: Scanner.UntilCondition)
| 80 | } |
| 81 | |
| 82 | shiftUntil(condition: Scanner.UntilCondition): string { |
| 83 | let shifted = "" |
| 84 | while (this.peek) { |
| 85 | if (condition(this, shifted)) break |
| 86 | else shifted += this.shift() |
| 87 | } |
| 88 | return shifted |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * shifts until condition holds, reading `\` before the terminator as the |
no test coverage detected