ruby-changes:11747
From: matz <ko1@a...>
Date: Mon, 11 May 2009 22:57:30 +0900 (JST)
Subject: [ruby-changes:11747] Ruby:r23393 (trunk): * parse.y: add semicolons to some grammar rules not terminated
matz 2009-05-11 22:54:59 +0900 (Mon, 11 May 2009) New Revision: 23393 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23393 Log: * parse.y: add semicolons to some grammar rules not terminated with them. a patch from Dave B in [ruby-core:23422]. Modified files: trunk/ChangeLog trunk/parse.y Index: ChangeLog =================================================================== --- ChangeLog (revision 23392) +++ ChangeLog (revision 23393) @@ -1,3 +1,8 @@ +Mon May 11 21:46:20 2009 Yukihiro Matsumoto <matz@r...> + + * parse.y: add semicolons to some grammar rules not terminated + with them. a patch from Dave B in [ruby-core:23422]. + Mon May 11 20:08:33 2009 Kazuhiro NISHIYAMA <zn@m...> * io.c (Init_IO): add constant File::NOATIME. [ruby-core:23194] Index: parse.y =================================================================== --- parse.y (revision 23392) +++ parse.y (revision 23393) @@ -2981,6 +2981,7 @@ if (RTEST(ruby_verbose)) token_info_push(parser, "begin"); #endif } + ; k_if : keyword_if { @@ -2988,6 +2989,7 @@ if (RTEST(ruby_verbose)) token_info_push(parser, "if"); #endif } + ; k_unless : keyword_unless { @@ -2995,6 +2997,7 @@ if (RTEST(ruby_verbose)) token_info_push(parser, "unless"); #endif } + ; k_while : keyword_while { @@ -3002,6 +3005,7 @@ if (RTEST(ruby_verbose)) token_info_push(parser, "while"); #endif } + ; k_until : keyword_until { @@ -3009,6 +3013,7 @@ if (RTEST(ruby_verbose)) token_info_push(parser, "until"); #endif } + ; k_case : keyword_case { @@ -3016,6 +3021,7 @@ if (RTEST(ruby_verbose)) token_info_push(parser, "case"); #endif } + ; k_for : keyword_for { @@ -3023,6 +3029,7 @@ if (RTEST(ruby_verbose)) token_info_push(parser, "for"); #endif } + ; k_class : keyword_class { @@ -3030,6 +3037,7 @@ if (RTEST(ruby_verbose)) token_info_push(parser, "class"); #endif } + ; k_module : keyword_module { @@ -3037,6 +3045,7 @@ if (RTEST(ruby_verbose)) token_info_push(parser, "module"); #endif } + ; k_def : keyword_def { @@ -3044,6 +3053,7 @@ if (RTEST(ruby_verbose)) token_info_push(parser, "def"); #endif } + ; k_end : keyword_end { @@ -3051,6 +3061,7 @@ if (RTEST(ruby_verbose)) token_info_pop(parser, "end"); /* POP */ #endif } + ; then : term /*%c%*/ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/