| 694 | } |
| 695 | |
| 696 | private isConflictMarker() { |
| 697 | // Conflict markers must be at the start of a line. |
| 698 | if (this.#offset === 0 || isLineBreak(this.#text.charCodeAt(this.#offset - 1))) { |
| 699 | if ((this.#offset + mergeConflictMarkerLength) < this.#length) { |
| 700 | for (let i = 0; i < mergeConflictMarkerLength; i++) { |
| 701 | if (this.#text.charCodeAt(this.#offset + i) !== this.#ch) { |
| 702 | return false; |
| 703 | } |
| 704 | } |
| 705 | return this.#ch === CharacterCodes.equals || this.#text.charCodeAt(this.#offset + mergeConflictMarkerLength) === CharacterCodes.space; |
| 706 | } |
| 707 | } |
| 708 | |
| 709 | return false; |
| 710 | } |
| 711 | |
| 712 | private scanWhitespace(): Kind { |
| 713 | // since whitespace are not always 1 character wide, we're going to mark the position before the whitespace. |