Fixes #2258 -- allow parameter lists in the vertical style.

This commit is contained in:
Jeremy Ashkenas
2012-04-24 16:56:39 -04:00
parent 8bc6001d27
commit 87257ea6b3
4 changed files with 173 additions and 150 deletions

View File

@@ -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