aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 0bda2d2db0..6d0564476d 100644
--- a/parse.y
+++ b/parse.y
@@ -9235,6 +9235,9 @@ parser_yylex(struct parser_params *p)
switch (c = nextc(p)) {
case '.':
if ((c = nextc(p)) == '.') {
+ if (p->lex.paren_nest == 0 && looking_at_eol_p(p)) {
+ rb_warn0("... at EOL, should be parenthesized?");
+ }
return is_beg ? tBDOT3 : tDOT3;
}
pushback(p, c);