Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-5712

perl syntax highlighting bug

    XMLWordPrintable

Details

    Description

      as with the sed 's' command, perl offers some situations where paired delimiters can be replaced with alternatives, provided the alternative chars match each other (pairwise.)
      One such case is the 2nd line of the example below.
      Fisheye displays the left end of the line correctly, but then renders everything to the right of the 1st '#' (starting with the '#') as a comment.

            my $rcptTo = $obj->{rcpt_to};
            if ($rcptTo =~ qr#next(\d+).*#) {
              $bid = $1;
            }

      This is wrong. The 2 '#'s should be counted as string delimiters, and the content inside (yeah, even embedded, non-escaped single & double quotes!) as a double-quoted string. So for perl, the contained variables would be highlighted as such, and the rest of the text would be plain string.

      Atlassian FishEye analysis with Crucible code review. (Version:3.7.0 Build:20150127093303 2015-01-27) - Administration - Page generated 2015-07-16 10:22 -0400
      Version 3.8.1 is available.

      Attachments

        Activity

          People

            mparfianowicz Marek Parfianowicz
            fdce8fe1c4d2 Nate Schley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: