219
220
case CharCode.Equals:
221
>
if (this._match(CharCode.Equals)) { // support `==`
scanner.ts
222
const isTripleEq = this._match(CharCode.Equals); // eat last `=` if `===`
223
this._tokens.push({ type: TokenType.Eq, offset: this._start, isTripleEq });
224
>
} else if (this._match(CharCode.Tilde)) {
scanner.ts
225
this._addToken(TokenType.RegexOp);
226
} else {
227
this._error(hintDidYouMean('==', '=~'));
228
}
230
231
case CharCode.LessThan: this._addToken(this._match(CharCode.Equals) ? TokenType.LtEq : TokenType.Lt); break;