1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

fixes #1420: (fn() ->) by causing the Lexer::tagParameters method to

give up looking for a parameter list when it saw a `CALL_START` token.
This commit is contained in:
Michael Ficarra 2011-06-07 03:58:36 -04:00
parent 8ce1fdb5bb
commit 522f2ee3b3
2 changed files with 3 additions and 0 deletions

View file

@ -444,6 +444,8 @@
} else if (tok[0] === '(') {
tok[0] = 'PARAM_START';
return this;
} else {
return this;
}
}
}

View file

@ -378,6 +378,7 @@ exports.Lexer = class Lexer
else if tok[0] is '('
tok[0] = 'PARAM_START'
return this
else return this
this
# Close up all remaining open blocks at the end of the file.