summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-21 04:36:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-21 04:36:05 +0000
commit82ba40b4340b01c97733561816dc8a4ee8adc081 (patch)
treef16567f8fbf724d97758724c65e51c9c7307f04b /parse.y
parent2e1efa94993dee9b54ac4c9f4c58a06f41ed3232 (diff)
* parse.y (parser_yylex): reverted r27388 due to backward
compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 9603d61670..23f4362857 100644
--- a/parse.y
+++ b/parse.y
@@ -7203,8 +7203,9 @@ parser_yylex(struct parser_params *parser)
lex_state = EXPR_DOT;
return tCOLON2;
}
- if ((IS_END() && !space_seen) || ISSPACE(c)) {
+ if (IS_END() || ISSPACE(c)) {
pushback(c);
+ warn_balanced(":", "symbol literal");
lex_state = EXPR_BEG;
return ':';
}