Skip to content

Commit 0ae7bc0

Browse files
committed
glayzzle#30 correct innerList flag
1 parent 8bf8861 commit 0ae7bc0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ parser.prototype.parse = function(code) {
220220
this.lexer.comment_tokens = this.extractDoc;
221221
this.length = this.lexer._input.length;
222222
this.nextWithComments();
223+
this.innerList = false;
223224
this.ast = ['program', []];
224225
while(this.token != this.EOF) {
225226
var node = this.read_start();

src/parser/expr.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ module.exports = {
107107
var result = this.node('list');
108108
this.next().expect('(').next();
109109
var isInner = this.innerList;
110+
110111
if (!this.innerList) this.innerList = true;
111112
var assignList = this.read_assignment_list();
112113

0 commit comments

Comments
 (0)