From: helly Date: Mon, 17 Apr 2006 15:21:31 +0000 (+0000) Subject: - Formatting update X-Git-Tag: 0.13.6~370 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4abc85405cd1385e2d0b5d359182752c7a595e2;p=re2c - Formatting update --- diff --git a/lessons/002_strip_comments/strip_003.b.c b/lessons/002_strip_comments/strip_003.b.c index 8de0bf30..21c7ff86 100755 --- a/lessons/002_strip_comments/strip_003.b.c +++ b/lessons/002_strip_comments/strip_003.b.c @@ -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 "" yy29: ++YYCURSOR; diff --git a/lessons/002_strip_comments/strip_003.b.re b/lessons/002_strip_comments/strip_003.b.re index 41db8f20..7b1f8748 100755 --- a/lessons/002_strip_comments/strip_003.b.re +++ b/lessons/002_strip_comments/strip_003.b.re @@ -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; } */