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

tuchman

  • Senior Community Member
  • Posts: 144
  • Hero Points: 7
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: 6862
  • Hero Points: 528
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

  • Senior Community Member
  • Posts: 3960
  • Hero Points: 517
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.