Skip to content

Commit 306c38e

Browse files
committed
[javascript mode] Remove strange handling of 'in' in TypeScript mode
Closes #5909
1 parent 11786d2 commit 306c38e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/javascript/javascript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
574574
}
575575
function maybetype(type, value) {
576576
if (isTS) {
577-
if (type == ":" || value == "in") return cont(typeexpr);
577+
if (type == ":") return cont(typeexpr);
578578
if (value == "?") return cont(maybetype);
579579
}
580580
}

0 commit comments

Comments
 (0)