lib/parser/ruby19.y in parser-2.0.0 vs lib/parser/ruby19.y in parser-2.1.0.pre1
- old
+ new
@@ -1747,14 +1747,16 @@
{
result = @builder.float(val[0])
}
| tUMINUS_NUM tINTEGER =tLOWEST
{
- result = @builder.integer(val[1], true)
+ result = @builder.negate(val[0],
+ @builder.integer(val[1]))
}
| tUMINUS_NUM tFLOAT =tLOWEST
{
- result = @builder.float(val[1], true)
+ result = @builder.negate(val[0],
+ @builder.float(val[1]))
}
user_variable: tIDENTIFIER
{
result = @builder.ident(val[0])