mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Do not literal_flush if float is read correctly
* parse.y (parse_numeric): Do not literal_flush if float is read correctly. This will fix the first column of float. before: ``` 1.2i1.1 ^ ``` after: ``` 1.2i1.1 ^~~ ``` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
342e9ae38a
commit
1a0ed8cb42
1 changed files with 0 additions and 1 deletions
1
parse.y
1
parse.y
|
@ -7617,7 +7617,6 @@ parse_numeric(struct parser_params *parser, int c)
|
|||
}
|
||||
v = DBL2NUM(d);
|
||||
}
|
||||
literal_flush(lex_p);
|
||||
return set_number_literal(v, type, suffix);
|
||||
}
|
||||
suffix = number_literal_suffix(NUM_SUFFIX_ALL);
|
||||
|
|
Loading…
Add table
Reference in a new issue