Menu

#577 Syntax highlight problems

open
nobody
Editor (234)
5
2009-12-11
2009-12-11
Anonymous
No

The following code breaks syntax highlighting:

map { $a->{$_} } qw/a b/;

I'm using EPIC 0.6.35, Eclipse 3.5.1.

Igor

Discussion

  • rtmhal

    rtmhal - 2010-01-19

    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 #
    #-------------------------------------------#

     
  • rtmhal

    rtmhal - 2010-01-21

    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 #
    #-------------------------------------------#

     
  • Jan Ploski

    Jan Ploski - 2010-04-04

    Can't reproduce in 0.6.36, I think it's fixed there.

     
  • Jan Ploski

    Jan Ploski - 2010-04-04

    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.