summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-24 22:31:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-24 22:31:19 +0000
commit637f6122476ca1da7fa289a2b376c3d09324cc86 (patch)
tree0611b386a65ef900489c3c14a59dfebe7611a4f4 /parse.y
parent6eaa5f2b05c17cf05db5ced5e24f818e99a39828 (diff)
* 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
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index c37a5bea7a..79bdc15db1 100644
--- a/parse.y
+++ b/parse.y
@@ -1426,7 +1426,7 @@ primary : literal
$$ = NEW_BEGIN($3);
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");
$$ = $2;