shithub: mc

Download patch

ref: c82dc24c8dfe8722d53abd079801f2536c8bbb90
parent: 9875caeeeda455522be769084bc6f490e59018c4
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Feb 1 18:27:45 EST 2017

Revert mistaken cleanups.

	These cleanups don't work. Oops.

--- a/parse/gram.y
+++ b/parse/gram.y
@@ -582,7 +582,7 @@
 	| Tendln {$$ = NULL;}
 	;
 
-goto    : Tgoto Tident Tendln {
+goto    : Tgoto Tident {
 		Node *lbl;
 
 		lbl = mklbl($2->loc, "");
@@ -899,11 +899,11 @@
 	| /* empty */ {$$ = NULL;}
 	;
 
-break   : Tbreak Tendln
+break   : Tbreak
 	{$$ = mkexpr($1->loc, Obreak, NULL);}
 	;
 
-continue   : Tcontinue Tendln
+continue   : Tcontinue
 	{$$ = mkexpr($1->loc, Ocontinue, NULL);}
 	;
 
@@ -1004,7 +1004,7 @@
 	}
 	;
 
-label   : Tcolon Tident Tendln {
+label   : Tcolon Tident {
 		char buf[512];
 		genlblstr(buf, sizeof buf, $2->id);
 		$$ = mklbl($2->loc, buf);