1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (parser_yylex): fix token even after trailing under score.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-10-17 07:35:39 +00:00
parent eccb700286
commit 859a985715
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sat Oct 17 16:34:27 2009 Tanaka Akira <akr@fsij.org>
* parse.y (parser_yylex): fix token even after trailing under score.
Sat Oct 17 11:27:44 2009 Yukihiro Matsumoto <matz@ruby-lang.org> Sat Oct 17 11:27:44 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
* vm_method.c (basic_obj_respond_to): call #respond_to_missing? * vm_method.c (basic_obj_respond_to): call #respond_to_missing?

View file

@ -7062,13 +7062,13 @@ parser_yylex(struct parser_params *parser)
decode_num: decode_num:
pushback(c); pushback(c);
tokfix();
if (nondigit) { if (nondigit) {
char tmp[30]; char tmp[30];
trailing_uc: trailing_uc:
snprintf(tmp, sizeof(tmp), "trailing `%c' in number", nondigit); snprintf(tmp, sizeof(tmp), "trailing `%c' in number", nondigit);
yyerror(tmp); yyerror(tmp);
} }
tokfix();
if (is_float) { if (is_float) {
double d = strtod(tok(), 0); double d = strtod(tok(), 0);
if (errno == ERANGE) { if (errno == ERANGE) {