From 1a0ed8cb42c88868ea51adb8fa6f3a4bab722b7d Mon Sep 17 00:00:00 2001 From: yui-knk Date: Sat, 21 Oct 2017 02:50:38 +0000 Subject: [PATCH] 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 --- parse.y | 1 - 1 file changed, 1 deletion(-) diff --git a/parse.y b/parse.y index 7aef9630a9..8d9e2288ed 100644 --- a/parse.y +++ b/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);