Open NorthboundTrain opened 3 years ago
I'm seeing the same behavior for a non postfix-IF (but still an IF)
#!/usr/bin/env perl
my $foo = "stuff to change";
if ($foo =~ s{change$}{celebrate}) {
# this is not highlighed like a comment should be
print $foo;
foreach my $x qw(a b c d e f g) {
print $x
}
}
results in
changing s{}{}
to s///
allows highlighting to behave properly
adding modifier
The following code:
results in:
However, if I change
s{}{}
tos///
then it works fine.even adding a modifier to
s{}{}
(e.g.s{}{}i
) will fix it:And any of these without the postfix
if
works just fine:Thanks!