ruby-changes:4196
From: ko1@a...
Date: Tue, 4 Mar 2008 16:29:57 +0900 (JST)
Subject: [ruby-changes:4196] matz - Ruby:r15686 (trunk): * parse.y (parser_yylex): disallow non digits '0o' expression.
matz 2008-03-04 16:29:38 +0900 (Tue, 04 Mar 2008)
New Revision: 15686
Modified files:
trunk/ChangeLog
trunk/parse.y
Log:
* parse.y (parser_yylex): disallow non digits '0o' expression.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=15686&r2=15685&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15686&r2=15685&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 15685)
+++ ChangeLog (revision 15686)
@@ -1,3 +1,7 @@
+Tue Mar 4 16:29:06 2008 Yukihiro Matsumoto <matz@r...>
+
+ * parse.y (parser_yylex): disallow non digits '0o' expression.
+
Tue Mar 04 14:35:12 2008 NARUSE, Yui <naruse@r...>
* io.c (open_key_args): use rb_io_open_with_args instead of rb_f_open.
Index: parse.y
===================================================================
--- parse.y (revision 15685)
+++ parse.y (revision 15686)
@@ -6634,7 +6634,7 @@
if (c == 'o' || c == 'O') {
/* prefixed octal */
c = nextc();
- if (c == '_') {
+ if (c == '_' || !ISDIGIT(c)) {
yyerror("numeric literal without digits");
}
}
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/