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

* parse.y: add semicolons to some grammar rules not terminated

with them.  a patch from Dave B in [ruby-core:23422].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2009-05-11 13:54:59 +00:00
parent a7a1968ad1
commit ab2119fc3d
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Mon May 11 21:46:20 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
* 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@mbf.nifty.com> Mon May 11 20:08:33 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* io.c (Init_IO): add constant File::NOATIME. [ruby-core:23194] * io.c (Init_IO): add constant File::NOATIME. [ruby-core:23194]

11
parse.y
View file

@ -2981,6 +2981,7 @@ k_begin : keyword_begin
if (RTEST(ruby_verbose)) token_info_push(parser, "begin"); if (RTEST(ruby_verbose)) token_info_push(parser, "begin");
#endif #endif
} }
;
k_if : keyword_if k_if : keyword_if
{ {
@ -2988,6 +2989,7 @@ k_if : keyword_if
if (RTEST(ruby_verbose)) token_info_push(parser, "if"); if (RTEST(ruby_verbose)) token_info_push(parser, "if");
#endif #endif
} }
;
k_unless : keyword_unless k_unless : keyword_unless
{ {
@ -2995,6 +2997,7 @@ k_unless : keyword_unless
if (RTEST(ruby_verbose)) token_info_push(parser, "unless"); if (RTEST(ruby_verbose)) token_info_push(parser, "unless");
#endif #endif
} }
;
k_while : keyword_while k_while : keyword_while
{ {
@ -3002,6 +3005,7 @@ k_while : keyword_while
if (RTEST(ruby_verbose)) token_info_push(parser, "while"); if (RTEST(ruby_verbose)) token_info_push(parser, "while");
#endif #endif
} }
;
k_until : keyword_until k_until : keyword_until
{ {
@ -3009,6 +3013,7 @@ k_until : keyword_until
if (RTEST(ruby_verbose)) token_info_push(parser, "until"); if (RTEST(ruby_verbose)) token_info_push(parser, "until");
#endif #endif
} }
;
k_case : keyword_case k_case : keyword_case
{ {
@ -3016,6 +3021,7 @@ k_case : keyword_case
if (RTEST(ruby_verbose)) token_info_push(parser, "case"); if (RTEST(ruby_verbose)) token_info_push(parser, "case");
#endif #endif
} }
;
k_for : keyword_for k_for : keyword_for
{ {
@ -3023,6 +3029,7 @@ k_for : keyword_for
if (RTEST(ruby_verbose)) token_info_push(parser, "for"); if (RTEST(ruby_verbose)) token_info_push(parser, "for");
#endif #endif
} }
;
k_class : keyword_class k_class : keyword_class
{ {
@ -3030,6 +3037,7 @@ k_class : keyword_class
if (RTEST(ruby_verbose)) token_info_push(parser, "class"); if (RTEST(ruby_verbose)) token_info_push(parser, "class");
#endif #endif
} }
;
k_module : keyword_module k_module : keyword_module
{ {
@ -3037,6 +3045,7 @@ k_module : keyword_module
if (RTEST(ruby_verbose)) token_info_push(parser, "module"); if (RTEST(ruby_verbose)) token_info_push(parser, "module");
#endif #endif
} }
;
k_def : keyword_def k_def : keyword_def
{ {
@ -3044,6 +3053,7 @@ k_def : keyword_def
if (RTEST(ruby_verbose)) token_info_push(parser, "def"); if (RTEST(ruby_verbose)) token_info_push(parser, "def");
#endif #endif
} }
;
k_end : keyword_end k_end : keyword_end
{ {
@ -3051,6 +3061,7 @@ k_end : keyword_end
if (RTEST(ruby_verbose)) token_info_pop(parser, "end"); /* POP */ if (RTEST(ruby_verbose)) token_info_pop(parser, "end"); /* POP */
#endif #endif
} }
;
then : term then : term
/*%c%*/ /*%c%*/