mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Self-compiler can compile splats.
This commit is contained in:
parent
ae4f6309e8
commit
fd80d784f4
4 changed files with 41 additions and 4 deletions
|
@ -196,8 +196,8 @@
|
|||
// A Parameter (or ParamSplat) in a function definition.
|
||||
Param: [o("PARAM", function() {
|
||||
return yytext;
|
||||
}), o("PARAM . . .", function() {
|
||||
return new SplatNode(yytext);
|
||||
}), o("Param . . .", function() {
|
||||
return new SplatNode($1);
|
||||
})
|
||||
],
|
||||
// A regular splat.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue