Skip to content

Commit 5e29ee6

Browse files
committed
[javascript mode] Fix bug in array literal parsing
Closes codemirror#4130
1 parent f8b765b commit 5e29ee6

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
@@ -641,7 +641,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
641641
}
642642
function arrayLiteral(type) {
643643
if (type == "]") return cont();
644-
return pass(expressionNoComma, commasep(expressionNoComma, "]"));
644+
return pass(commasep(expressionNoComma, "]"));
645645
}
646646

647647
function isContinuedStatement(state, textAfter) {

0 commit comments

Comments
 (0)