505
|| (firstCharCode >= CharCode.A && firstCharCode <= CharCode.Z)
506
|| (firstCharCode >= CharCode.a && firstCharCode <= CharCode.z)
508
>
);
509
>
const tokens = this._tokens;
510
>
const tokenCount = this._tokenCount;
511
>
for (let i = 0; i < tokenCount; i++) {
512
>
const offset = 4 * i;
513
>
let tokenDeltaLine = tokens[offset];
514
>
let tokenStartCharacter = tokens[offset + 1];
515
>
let tokenEndCharacter = tokens[offset + 2];
516
>
517
>
if (tokenDeltaLine < deltaLine || (tokenDeltaLine === deltaLine && tokenEndCharacter < character)) {
518
>
// 1. The token is completely before the insertion point
519
>
// => nothing to do
520
>
continue;
521
>
} else if (tokenDeltaLine === deltaLine && tokenEndCharacter === character) {
522
// 2. The token ends precisely at the insertion point
523
// => expand the end character only if inserting precisely one character that is a word character