diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-01 00:12:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-01 00:12:12 +0000 |
commit | 7484d07ca765770619b32a744fde15ae240a3517 (patch) | |
tree | 40d9811ea3216d54bda5b73fcf7ce8fda14109d9 /parse.y | |
parent | 1a2a4084d94b750646874e5f383b34fcc606dcc9 (diff) | |
download | ruby-7484d07ca765770619b32a744fde15ae240a3517.tar.gz |
parse.y: invalid symbol
* parse.y (parser_yylex): ':' separated by a comment and a newline
is not valid as symbol.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8426,7 +8426,7 @@ parser_yylex(struct parser_params *parser) lex_state = EXPR_DOT; return tCOLON2; } - if (IS_END() || ISSPACE(c)) { + if (IS_END() || ISSPACE(c) || c == '#') { pushback(c); warn_balanced(":", "symbol literal"); lex_state = EXPR_BEG; |