shithub: scc

Download patch

ref: 3e7e69413c50005c9e35de23fab8fc8ec9604f68
parent: 8c3f4becbfcf1c268d58909bd61d4045d0e21302
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Jun 12 17:51:46 EDT 2012

Expect ; in all the statement, not only in expressions

This commit allow that all the statement can end with the ;

--- a/flow.c
+++ b/flow.c
@@ -106,9 +106,9 @@
 		/* TODO: check if it can be a label */
 	default:
 		expr();
-		expect(';');
 		break;
 	}
+	expect(';');
 }
 
 void compound(void)