I encounter the problem too..
PSPad 4.5.2 (2241) Win XP

Here is the example scripts:


#!/usr/bin/perl
$string1 = 'And he shall be called, "the Hero of the future"' ;
if ($string1 =~ m/\".+\"/) {
   print "$&\n" ;
} else {
   print "no match found\n" ;
}
#comment


The regular expression is on the line

if ($string1 =~ m/\".+\"/) {

it start with m and then delimiter, which is / (slash) at the example.

Since Perl is very flexible, we can also type

if ($string1 = ~ m!\".+\"!) {
 
using ! as delimiter.

Now, the line

#comment

should be highlighted as comment (italic in my setup), but it isn't.

Additional note, we also can type

if ($string1 =~ /\".+\"/) {

without the m, but we must use / as the delimiter. I don't know if this is a
good practice, but I usually use that.. :)

>From the example scripts above, if you remove all of the " (double quote) in 
>the
regular expression, the comment will be italic as it is supposed to be.

Perhaps this can help you understand a bit about the bugs. 

Thanks.

Joshua

-- 
<http://forum.pspad.com/read.php?4,30849,40144>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem