ref: a516d33035721f153e62c9b48d65a82a520dc539
parent: 420ff90e97759947fe51f953f1d0a2bd7fff7067
author: Ori Bernstein <[email protected]>
date: Thu Nov 24 21:21:33 EST 2011
Allow newlines in type defn bodies.
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -281,6 +281,8 @@
{$$ = $1;}
| visdef TEndln
{$$ = NULL;}
+ | TEndln
+ {$$ = NULL;}
;
uniondef
@@ -300,6 +302,8 @@
{$$ = NULL; die("unionelt impl");}
| visdef TEndln
{$$ = NULL;}
+ | TEndln
+ {$$ = NULL;}
;
enumdef : TEnum enumbody TEndblk
@@ -316,6 +320,8 @@
{$$ = NULL; die("enumelt impl");}
| TIdent TAsn exprln
{$$ = NULL; die("enumelt impl");}
+ | TEndln
+ {$$ = NULL;}
;
retexpr : TRet exprln