shithub: mc

Download patch

ref: 462ab9093119c6eaefabcca6767216df31df2e82
parent: c8c925b99018ddf8cfabcbabbdf69c6dc8de67a1
author: Ori Bernstein <[email protected]>
date: Sun Nov 20 18:24:11 EST 2011

Allow decls in blocks

--- a/parse/gram.y
+++ b/parse/gram.y
@@ -471,7 +471,8 @@
         | arraybody TComma expr
         ;
 
-stmt    : retexpr
+stmt    : decl
+        | retexpr
         | label
         | ifstmt
         | forstmt