summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-22 00:40:09 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-22 00:40:09 +0000
commitd8311608ffbcd23665f859f549789e8c05ff0b60 (patch)
tree6cfb4ee816e82056df6a527902cc76db3f67367f /parse.y
parent5a1c591126a76ee8739513f0363c5df415cedffd (diff)
downloadruby-d8311608ffbcd23665f859f549789e8c05ff0b60.tar.gz
ruby-d8311608ffbcd23665f859f549789e8c05ff0b60.tar.xz
ruby-d8311608ffbcd23665f859f549789e8c05ff0b60.zip
* 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@13152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index c30e42315..fcb888f71 100644
--- a/parse.y
+++ b/parse.y
@@ -2143,6 +2143,7 @@ dsym : tSYMBEG xstring_contents tSTRING_END
{
lex_state = EXPR_END;
if (!($$ = $2)) {
+ $$ = NEW_NIL();
yyerror("empty symbol literal");
}
else {