()
| 106 | } |
| 107 | |
| 108 | skipToNextLine(): void { |
| 109 | while (!this.atEnd && this.peek() !== '\n') this.consume(); |
| 110 | if (!this.atEnd) this.consume(); // Consume the newline character |
| 111 | } |
| 112 | |
| 113 | skipToString(str: string): boolean { |
| 114 | const start = this.pos; |