Skip to content

Commit 55a1ead

Browse files
committed
[javascript mode] Accept commas as separators in TypeScript interfaces
Issue #5734
1 parent e68dd64 commit 55a1ead

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
@@ -762,7 +762,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
762762
return cont(classBody);
763763
}
764764
if (isTS && type == "(") return pass(functiondecl, classBody)
765-
if (type == ";") return cont(classBody);
765+
if (type == ";" || type == ",") return cont(classBody);
766766
if (type == "}") return cont();
767767
if (value == "@") return cont(expression, classBody)
768768
}

0 commit comments

Comments
 (0)