Author Topic: Strange perl symbol coloring  (Read 503 times)

tuchman

  • Senior Community Member
  • Posts: 125
  • Hero Points: 6
Strange perl symbol coloring
« on: September 26, 2015, 08:13:40 am »
I recently observed this issue while using 2015 Beta on Win7-64, but could reproduce it on 2014 too.

Coloring of hash elements appears to toggle, line by line.
Please see attachment.

"Symbol coloring" => on
"Use Bold for ..." => on
"Highlight unidentified symbols" => on

Snippet...
use Modern::Perl;
# Module Handles
my %handles = (
   h1 => \my $H1, # Why are these symbols
   h2 => \my $H2, # colored differently?
   h3 => \my $H3, # Coloring appears
   h4 => \my $H4, # to alternate line
   h5 => \my $H5, # by line
   h6 => \my $H6, # by line
);

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3941
  • Hero Points: 256
Re: Strange perl symbol coloring
« Reply #1 on: September 26, 2015, 01:53:51 pm »
Looks like a bug. I was able to reproduce it in 19.0.2 and 20 beta 1. We will look into this. Thanks for finding this.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2209
  • Hero Points: 275
Re: Strange perl symbol coloring
« Reply #2 on: October 05, 2015, 06:13:27 pm »
The parsing error is due to the obscure \ (Perl reference) operator.  I will fix this for the next beta drop.