Fixed a small bug that happened when having a trailing comma in multiline array and object literals

This commit is contained in:
matehat
2010-03-26 14:11:34 -04:00
parent b9b87f7d8e
commit 8f3ea1d0c5
5 changed files with 122 additions and 107 deletions

View File

@@ -268,6 +268,8 @@
// An **AssignList** within a block indentation.
IndentedAssignList: [o("INDENT AssignList OUTDENT", function() {
return $2;
}), o("INDENT AssignList , OUTDENT", function() {
return $2;
})
],
// The three flavors of function call: normal, object instantiation with `new`,
@@ -352,7 +354,7 @@
return $1.concat([$4]);
}), o("ArgList , INDENT Expression", function() {
return $1.concat([$4]);
}), o("ArgList OUTDENT")
}), o("ArgList OUTDENT"), o("ArgList , OUTDENT")
],
// Just simple, comma-separated, required arguments (no fancy syntax). We need
// this to be separate from the **ArgList** for use in **Switch** blocks, where

File diff suppressed because one or more lines are too long