[前][次][番号順一覧][スレッド一覧]

ruby-changes:48111

From: yui-knk <ko1@a...>
Date: Sat, 21 Oct 2017 11:50:43 +0900 (JST)
Subject: [ruby-changes:48111] yui-knk:r60225 (trunk): Do not literal_flush if float is read correctly

yui-knk	2017-10-21 11:50:38 +0900 (Sat, 21 Oct 2017)

  New Revision: 60225

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60225

  Log:
    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
          ^~~
      ```

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 60224)
+++ parse.y	(revision 60225)
@@ -7617,7 +7617,6 @@ parse_numeric(struct parser_params *pars https://github.com/ruby/ruby/blob/trunk/parse.y#L7617
 	    }
 	    v = DBL2NUM(d);
 	}
-	literal_flush(lex_p);
 	return set_number_literal(v, type, suffix);
     }
     suffix = number_literal_suffix(NUM_SUFFIX_ALL);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]