PreviousNextTracker indexSee it online !

(61/211) 3434 - 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:58 Assigned przemo_w
Priority 5 Labels text area and syntax packages
Status open Group minor bug
Resolution None

Comments

2011-12-06 02:05:50
ezust

- **assigned_to**: nobody --> przemo_w