Skip to content

Commit

Permalink
fix T_EXIT look ahead
Browse files Browse the repository at this point in the history
  • Loading branch information
ichiriac committed May 11, 2015
1 parent 393aefb commit 1e66608
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser/expr.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ module.exports = function(api, tokens, EOF) {
if (this.next().token !== ')') {
expr = this.read_expr();
this.expect(')').next();
} else {
this.next();
}
}
return ['sys', 'exit', expr];
Expand Down

0 comments on commit 1e66608

Please sign in to comment.