SlickEdit Community

Archived Beta Discussions => SlickEdit 201x Beta Discussions => SlickEdit 2015 v20 Beta Discussion => Topic started by: tuchman on September 26, 2015, 08:13:40 AM

Title: Strange perl symbol coloring
Post by: tuchman 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
);
Title: Re: Strange perl symbol coloring
Post by: Clark 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.
Title: Re: Strange perl symbol coloring
Post by: Dennis 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.