diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-29 02:23:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-29 02:23:13 +0000 |
commit | cf46a2fce6758d7ba2b9a5615249fde9af6015ea (patch) | |
tree | 340815f2fcf44bc770b805398b064bf5e03041fa /parse.y | |
parent | baaa30ec03195e4d6fc6c2d144f8224f250d58f2 (diff) | |
download | ruby-cf46a2fce6758d7ba2b9a5615249fde9af6015ea.tar.gz |
* parse.y (dsym): return non-null NODE even if yyerror(). based on a
patch from from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:31085]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3829,6 +3829,7 @@ dsym : tSYMBEG xstring_contents tSTRING_END /*%%%*/ lex_state = EXPR_ENDARG; if (!($$ = $2)) { + $$ = NEW_NIL(); yyerror("empty symbol literal"); } else { |