Fixing splats after newlines - #754.

This commit is contained in:
Sam Stephenson
2010-10-10 11:34:22 -05:00
parent f6ca5d814c
commit 20a07c174c
6 changed files with 36 additions and 23 deletions

View File

@@ -203,13 +203,13 @@ grammar =
Param: [
o "PARAM", -> new Literal $1
o "@ PARAM", -> new Param $2, true
o "PARAM . . .", -> new Param $1, false, true
o "@ PARAM . . .", -> new Param $2, true, true
o "PARAM ...", -> new Param $1, false, true
o "@ PARAM ...", -> new Param $2, true, true
]
# A splat that occurs outside of a parameter list.
Splat: [
o "Expression . . .", -> new Splat $1
o "Expression ...", -> new Splat $1
]
# Variables and properties that can be assigned to.
@@ -331,8 +331,8 @@ grammar =
]
RangeDots: [
o ". .", -> 'inclusive'
o ". . .", -> 'exclusive'
o "..", -> 'inclusive'
o "...", -> 'exclusive'
]
# A reference to a property on *this*.