PreviousNextTracker indexSee it online !

(102/231) 2999399 - Minor Perl highlighting bug: hash/array access in string

Paste the following 8 lines to an untitled buffer, save as TEST.pl:

my @l1 = ( 'a', 'b', 'c' );
print "List value 1 is $l1[0]\n";
my $l2 = [ 'a', 'b', 'c' ];
print "List value 2 is $l2->[0]\n";
my %h1 = ( d => 'e' );
print "Hash value is $h1{d}\n";
my $h2 = { d => 'e' };
print "Hash value is $h2->{d}\n";

The whole expression should be highlighted green within the string.
Line 2: green part is $l1[0]
Line 4: green part is $l2->[0]
Line 6: green part is $h1{d}
Line 8: green part is $h2->{d}, this is already correct.

--------
jEdit 4.3.1, Java 1.6.0_14, Windows XP SP2

Submitted bgolding - 2010-05-10 - 14:31:58z Assigned przemo_w
Priority 5 Category text area and syntax packages
Status Open Group minor bug
Resolution None Visibility No

Comments

Attachments