stab at UNITCHECK blocks
[p5sagit/p5-mst-13.2.git] / madly.y
diff --git a/madly.y b/madly.y
index 0643ff5..86a4c5e 100644 (file)
--- a/madly.y
+++ b/madly.y
@@ -498,7 +498,8 @@ startformsub:       /* NULL */      /* start a format subroutine scope */
 /* Name of a subroutine - must be a bareword, could be special */
 subname        :       WORD    { const char *const name = SvPV_nolen_const(((SVOP*)$1)->op_sv);
                          if (strEQ(name, "BEGIN") || strEQ(name, "END")
-                             || strEQ(name, "INIT") || strEQ(name, "CHECK"))
+                             || strEQ(name, "INIT") || strEQ(name, "CHECK")
+                             || strEQ(name, "UNITCHECK"))
                              CvSPECIAL_on(PL_compcv);
                          $$ = $1; }
        ;