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:
parent
8ce1fdb5bb
commit
522f2ee3b3
2 changed files with 3 additions and 0 deletions
|
@ -444,6 +444,8 @@
|
|||
} else if (tok[0] === '(') {
|
||||
tok[0] = 'PARAM_START';
|
||||
return this;
|
||||
} else {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue