Permalink
Browse files

* 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
  • Loading branch information...
akr committed Oct 17, 2009
1 parent eccb700 commit 859a9857156e19c54d9569a24387154d87ec5006
Showing with 5 additions and 1 deletion.
  1. +4 −0 ChangeLog
  2. +1 −1 parse.y
View
@@ -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>
* vm_method.c (basic_obj_respond_to): call #respond_to_missing?
View
@@ -7062,13 +7062,13 @@ parser_yylex(struct parser_params *parser)
decode_num:
pushback(c);
- tokfix();
if (nondigit) {
char tmp[30];
trailing_uc:
snprintf(tmp, sizeof(tmp), "trailing `%c' in number", nondigit);
yyerror(tmp);
}
+ tokfix();
if (is_float) {
double d = strtod(tok(), 0);
if (errno == ERANGE) {

0 comments on commit 859a985

Please sign in to comment.