shithub: mc

Download patch

ref: 500dd060a6b4dfbdf6ffe1c1a6b18069876e9611
parent: 1b37b97c96f832dd5623e2361f8b389c3057153e
author: Ori Bernstein <[email protected]>
date: Sun Aug 12 19:24:50 EDT 2012

Fix stray refactoring issues.

    Missed the removal of a Tendln, and left 'block' where 'body' should
    have been.

--- a/parse/gram.y
+++ b/parse/gram.y
@@ -210,7 +210,7 @@
 
 use     : Tuse Tident
             {$$ = mkuse($1->line, $2->str, 0);}
-        | Tuse Tstrlit Tendln
+        | Tuse Tstrlit
             {$$ = mkuse($1->line, $2->str, 1);}
         ;
 
@@ -551,7 +551,7 @@
 
 funclit : Tobrace params Tendln body Tcbrace
             {$$ = mkfunc($1->line, $2.nl, $2.nn, mktyvar($3->line), $4);}
-        | Tobrace params Tret type Tendln block Tcbrace
+        | Tobrace params Tret type Tendln body Tcbrace
             {$$ = mkfunc($1->line, $2.nl, $2.nn, $4, $6);}
         ;