fix incorrect @1

This commit is contained in:
Wolfgang Thaller 2014-10-31 00:39:23 +01:00
parent 6cfeafc91a
commit 02d81fb95b

View File

@ -443,7 +443,7 @@ resource_attributes : %empty { $$ = [](ResSpec s){ return s; }; }
; ;
%type <CompoundExprPtr> resource_body resource_body1; %type <CompoundExprPtr> resource_body resource_body1;
resource_body : %empty { $$ = std::make_shared<CompoundExpr>(@1); } resource_body : %empty { $$ = std::make_shared<CompoundExpr>(yy::location()); }
| resource_body1 { $$ = $1; $$->location = @1; } | resource_body1 { $$ = $1; $$->location = @1; }
; ;
resource_body1 : resource_item { $$ = std::make_shared<CompoundExpr>(@1); $$->addItem($1); } resource_body1 : resource_item { $$ = std::make_shared<CompoundExpr>(@1); $$->addItem($1); }