summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 93d395717e..2b466a997f 100644
--- a/parse.y
+++ b/parse.y
@@ -4029,7 +4029,8 @@ yylex()
c = tLPAREN_ARG;
}
else if (lex_state == EXPR_ARG) {
- c = tLPAREN_ARG;
+ rb_warn("don't put space before argument parentheses");
+ c = '(';
}
}
COND_PUSH(0);