Subject: | sequences of /= lines get masked as comments |
If you use the FILTER_ONLY with 'all' then the source
filter passes all lines as expected and the badfilter
catches and fixes the $a:$b syntax error.
If you have FILTER_ONLY with the 'code_no_comments'
argument then the code is mis-folded and the source
filter does not see the text between the two /= on
the lines and misses the syntax fix causing an error.
filter passes all lines as expected and the badfilter
catches and fixes the $a:$b syntax error.
If you have FILTER_ONLY with the 'code_no_comments'
argument then the code is mis-folded and the source
filter does not see the text between the two /= on
the lines and misses the syntax fix causing an error.
Subject: | badfilter.pm |
package badfilter;
use Filter::Simple;
FILTER_ONLY
code_no_comments =>
# all =>
sub {
s/(\w+):\$/$1,\$/;
};
1;