ellipsis is the new splat

This commit is contained in:
Jeremy Ashkenas
2010-01-05 21:40:36 -05:00
parent 1040e52246
commit c2bb93b5f8
7 changed files with 38 additions and 42 deletions

View File

@@ -221,8 +221,7 @@ module CoffeeScript
i -= 1
tok = @tokens[i]
return if !tok
next if tok[0] == ','
next tok[0] = :PARAM_SPLAT if tok[0] == '*'
next if ['.', ','].include?(tok[0])
return if tok[0] != :IDENTIFIER
tok[0] = :PARAM
end