The following code breaks syntax highlighting:
map { $a->{$_} } qw/a b/;
I'm using EPIC 0.6.35, Eclipse 3.5.1.
Igor
Same problem with Eclipse Platform Version: 3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7
EPIC 0.5.46
#!/usr/local/bin/perl
#-------------------------------------------# # test case to show highlighter breaking # #-------------------------------------------#
$a = 'word1 word2 word3';
($b1, $b2, $b3) = $a /(\w+)\s(\w+)\s(\w+)/;
#-------------------------------------------# # OK here # #-------------------------------------------#
($c1, $c2, $c3) = split /\s/, $a;
#-------------------------------------------# # Oops, not OK # #-------------------------------------------#
Some additional information. I changed the split to use " instead of / with this result:
($b1, $b2, $b3) = $a =~ /(\w+)\s(\w+)\s(\w+)/;
($c1, $c2, $c3) = split "\s", $a;
#-------------------------------------------# # OK here too # #-------------------------------------------#
Can't reproduce in 0.6.36, I think it's fixed there.
Oops, sorry, the original code breaks 0.6.36, it's just that the example posted in comments doesn't.
Log in to post a comment.
Same problem with Eclipse Platform Version: 3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7
EPIC 0.5.46
#!/usr/local/bin/perl
#-------------------------------------------#
# test case to show highlighter breaking #
#-------------------------------------------#
$a = 'word1 word2 word3';
($b1, $b2, $b3) = $a /(\w+)\s(\w+)\s(\w+)/;
#-------------------------------------------#
# OK here #
#-------------------------------------------#
($c1, $c2, $c3) = split /\s/, $a;
#-------------------------------------------#
# Oops, not OK #
#-------------------------------------------#
Some additional information. I changed the split to use " instead of / with this result:
#!/usr/local/bin/perl
#-------------------------------------------#
# test case to show highlighter breaking #
#-------------------------------------------#
$a = 'word1 word2 word3';
($b1, $b2, $b3) = $a =~ /(\w+)\s(\w+)\s(\w+)/;
#-------------------------------------------#
# OK here #
#-------------------------------------------#
($c1, $c2, $c3) = split "\s", $a;
#-------------------------------------------#
# OK here too #
#-------------------------------------------#
($c1, $c2, $c3) = split /\s/, $a;
#-------------------------------------------#
# Oops, not OK #
#-------------------------------------------#
Can't reproduce in 0.6.36, I think it's fixed there.
Oops, sorry, the original code breaks 0.6.36, it's just that the example posted in comments doesn't.