We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5daa1fc commit e313e2eCopy full SHA for e313e2e
1 file changed
src/compiler/scanner.ts
@@ -1361,9 +1361,9 @@ namespace ts {
1361
if (text.charCodeAt(pos + 1) === CharacterCodes.equals) {
1362
return pos += 2, token = SyntaxKind.LessThanEqualsToken;
1363
}
1364
- if (text.charCodeAt(pos + 1) === CharacterCodes.slash &&
1365
- text.charCodeAt(pos + 2) !== CharacterCodes.asterisk &&
1366
- languageVariant === LanguageVariant.JSX) {
+ if (languageVariant === LanguageVariant.JSX &&
+ text.charCodeAt(pos + 1) === CharacterCodes.slash &&
+ text.charCodeAt(pos + 2) !== CharacterCodes.asterisk) {
1367
return pos += 2, token = SyntaxKind.LessThanSlashToken;
1368
1369
return pos++, token = SyntaxKind.LessThanToken;
0 commit comments