mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Fixes #2258 -- allow parameter lists in the vertical style.
This commit is contained in:
@@ -193,6 +193,8 @@ grammar =
|
||||
o '', -> []
|
||||
o 'Param', -> [$1]
|
||||
o 'ParamList , Param', -> $1.concat $3
|
||||
o 'ParamList OptComma TERMINATOR Param', -> $1.concat $4
|
||||
o 'ParamList OptComma INDENT ParamList OptComma OUTDENT', -> $1.concat $4
|
||||
]
|
||||
|
||||
# A single parameter in a function definition can be ordinary, or a splat
|
||||
|
||||
Reference in New Issue
Block a user