mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
adding a block test and using PARAM_SPLAT to remove the last shift/reduce conflict
This commit is contained in:
@@ -219,7 +219,8 @@ module CoffeeScript
|
||||
i -= 1
|
||||
tok = @tokens[i]
|
||||
return if !tok
|
||||
next if ['*', ','].include?(tok[0])
|
||||
next if tok[0] == ','
|
||||
next tok[0] = :PARAM_SPLAT if tok[0] == '*'
|
||||
return if tok[0] != :IDENTIFIER
|
||||
tok[0] = :PARAM
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user