summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-29 02:23:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-29 02:23:13 +0000
commitfb9f0251a1562b7246276ae9fcbce08d51834d71 (patch)
tree340815f2fcf44bc770b805398b064bf5e03041fa /parse.y
parent9f8ab2d816d0a32e6248052c1e4425c34c0cf48d (diff)
downloadruby-fb9f0251a1562b7246276ae9fcbce08d51834d71.tar.gz
ruby-fb9f0251a1562b7246276ae9fcbce08d51834d71.tar.xz
ruby-fb9f0251a1562b7246276ae9fcbce08d51834d71.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/trunk@12653 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 b6a3fc338..51c1b792c 100644
--- a/parse.y
+++ b/parse.y
@@ -3829,6 +3829,7 @@ dsym : tSYMBEG xstring_contents tSTRING_END
/*%%%*/
lex_state = EXPR_ENDARG;
if (!($$ = $2)) {
+ $$ = NEW_NIL();
yyerror("empty symbol literal");
}
else {