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

* parse.y (primary): allow newlines just before right argument

parenthesis.  (ruby-bugs:PR#1221)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2003-11-24 22:31:19 +00:00
parent 6eaa5f2b05
commit 637f612247
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Tue Nov 25 07:31:16 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (primary): allow newlines just before right argument
parenthesis. (ruby-bugs:PR#1221)
Mon Nov 24 23:32:06 2003 Tanaka Akira <akr@m17n.org> Mon Nov 24 23:32:06 2003 Tanaka Akira <akr@m17n.org>
* lib/open-uri.rb (OpenURI.open_loop, URI::HTTP#proxy_open): use * lib/open-uri.rb (OpenURI.open_loop, URI::HTTP#proxy_open): use

View file

@ -1426,7 +1426,7 @@ primary : literal
$$ = NEW_BEGIN($3); $$ = NEW_BEGIN($3);
nd_set_line($$, $<num>1); nd_set_line($$, $<num>1);
} }
| tLPAREN_ARG expr {lex_state = EXPR_ENDARG;} ')' | tLPAREN_ARG expr {lex_state = EXPR_ENDARG;} opt_nl ')'
{ {
rb_warning("(...) interpreted as grouped expression"); rb_warning("(...) interpreted as grouped expression");
$$ = $2; $$ = $2;