summaryrefslogtreecommitdiffstats
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
commit0b01db4dcf46244c9992b0efd6c552e175a6842b (patch)
tree0611b386a65ef900489c3c14a59dfebe7611a4f4 /parse.y
parent2824d712204409717398d6837a9d4ce7456aba1c (diff)
downloadruby-0b01db4dcf46244c9992b0efd6c552e175a6842b.tar.gz
ruby-0b01db4dcf46244c9992b0efd6c552e175a6842b.tar.xz
ruby-0b01db4dcf46244c9992b0efd6c552e175a6842b.zip
* parse.y (primary): allow newlines just before right argument
parenthesis. (ruby-bugs:PR#1221) git-svn-id: http://svn.ruby-lang.org/repos/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 c37a5bea7..79bdc15db 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;