[Melbourne-pm] Editor mod in Padre and Notepad++ for Regexp::Grammers magic variable

Andrew Dent sgc294 at internode.on.net
Thu Sep 2 23:18:54 PDT 2010

  G'day all

I've started writing some code using the Regexp::Grammers module and I 
have a niggly problem with how Padre and Notepad++ perfrom syntax 
highlighting when the %/ is used.
If I am only using $/ then everything is fine, but %/ doesn't work the 
They both see the / as the beginning of a regex and change the color of 
the code that follows.

Example code:

foreach my $key (keys %/) {
   print "$key\n";

and the editor believe that ') {  print "$key\n";}' is in a regex.

But if instead I have

foreach my $key (keys %slash) {
   print "$key\n";

the syntax highlighting works correctly.

Does anyone know how I can modify the settings for syntax hightlighting 
in either or both Notepad++ and Padre when a / is used after a %?


Andrew Dent

More information about the Melbourne-pm mailing list