]> granicus.if.org Git - re2c/commitdiff
- Formatting update
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 17 Apr 2006 15:21:31 +0000 (15:21 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 17 Apr 2006 15:21:31 +0000 (15:21 +0000)
lessons/002_strip_comments/strip_003.b.c
lessons/002_strip_comments/strip_003.b.re

index 8de0bf30bccd970c4ec53b04a5d2896f9cc3bead..21c7ff861d82b09302a8dfda7c527e4c4cd97306 100755 (executable)
@@ -216,13 +216,13 @@ yy27:
 yy28:
 #line 134 "strip_003.b.re"
                                {
-                               if (!nlcomment)
-                               {
-                                       echo(&s);
+                                       if (!nlcomment)
+                                       {
+                                               echo(&s);
+                                       }
+                                       nlcomment = 0;
+                                       continue;
                                }
-                               nlcomment = 0;
-                               continue;
-                       }
 #line 227 "<stdout>"
 yy29:
                                ++YYCURSOR;
index 41db8f20eebdae08dc6c6c3a95385f6a2b9339df..7b1f8748d2eaf585f1535ffb61f9df476ae820ca 100755 (executable)
@@ -132,13 +132,13 @@ commentws:
 /*!re2c
        NL? "/" "*"     { goto comment; }
        NL                      {
-                               if (!nlcomment)
-                               {
-                                       echo(&s);
+                                       if (!nlcomment)
+                                       {
+                                               echo(&s);
+                                       }
+                                       nlcomment = 0;
+                                       continue;
                                }
-                               nlcomment = 0;
-                               continue;
-                       }
        WS                      { goto commentws; }
        ANY                     { echo(&s); nlcomment = 0; continue; }
 */