ref: 54ad7b99c3550311b01db0f45b162189f54d713d
parent: c371d2d2460444c4163a8a72600577f8f9b2aee9
author: jsadler <jsadler@ficl.sf.net>
date: Wed Apr 18 00:39:16 CDT 2001
tweaked order of commenting code to avoid incorrect comment termination if the C comment is the last thing in the file
--- a/softwords/softcore.pl
+++ b/softwords/softcore.pl
@@ -32,13 +32,6 @@
s/\"/\\\"/g; # escape quotes
#
- # ignore empty lines and lines containing
- # only empty comments
- #
- next if /^\s*\\\s*$/;
- next if /^\s*$/;
-
- #
# emit lines beginnning with "\ **" as C comments
#
if (/^\\\s\*\*/) {
@@ -56,6 +49,13 @@
}
$commenting = 0;
+
+ #
+ # ignore empty lines and lines containing
+ # only empty comments
+ #
+ next if /^\s*\\\s*$/;
+ next if /^\s*$/;
#
# pass commented preprocessor directives