smistrip - incorrectly matches MACROs within a comment

8 Jan
2003
8 Jan
'03
7:10 p.m.
I modified smistrip to match the MACRO statement with more a explicit regexp so that it doesn't match a commented out MACRO statement.
The line I changed the line from:
/ *MACRO *::=/ {
to:
/^[ \t]*[A-Za-z0-9-]* *MACRO *::=/ {
Can this be added to CVS?
Steve

13 Jan
13 Jan
12:32 p.m.
Hi!
Steve> I modified smistrip to match the MACRO statement with more a explicit Steve> regexp so that it doesn't match a commented out MACRO statement.
Steve> The line I changed the line from:
Steve> / *MACRO *::=/ {
Steve> to:
Steve> /^[ \t]*[A-Za-z0-9-]* *MACRO *::=/ {
Steve> Can this be added to CVS?
I see no problem with this change.
But "^[ \t]*[A-Za-z0-9-]*" matches "--", so this expression still matches commented out MACRO lines.
-frank
8235
Age (days ago)
8240
Last active (days ago)
1 comments
2 participants
participants (2)
-
Frank Strauss
-
Steve Bucknam