From fbcacf6388bbe19970f2793aa7f42b2fc7254a9b Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 29 Jun 2007 06:27:49 +0000 Subject: * parse.y (assoc_list): remove expanded hash literal (no splat). * lib/webrick/httpstatus.rb (WEBrick::HTTPStatus::EOFError): adapt to new syntax. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 51c1b792c..a76f30d15 100644 --- a/parse.y +++ b/parse.y @@ -4326,17 +4326,6 @@ assoc_list : none $$ = dispatch1(assoclist_from_args, $1); %*/ } - | args trailer - { - /*%%%*/ - if (nd_type($1) == NODE_ARRAY && $1->nd_alen%2 != 0) { - yyerror("odd number list for Hash"); - } - $$ = $1; - /*% - $$ = dispatch1(assoclist_from_args, $1); - %*/ - } ; assocs : assoc -- cgit