#420 bug in string highlight when casting hashmap item as array

v0.6.x
open
nobody
Outline (28)
5
2016-05-15
2007-07-17
No

consider the following Perl code, every line where $hashmap{'array'} is casted in array, there is no highlight for the string 'array'

======================
!/usr/bin/perl

use strict;
use warnings;
use Data::Dumper;

my %hashmap = ();

push( @{ $hashmap{'array'} }, 'toto');
push( @{ $hashmap{'array'} }, 'titi');
push( @{ $hashmap{'array'} }, 'tutu');

printf("element count : [%s]\n", scalar( @{ $hashmap{'array'} } ));

printf("item 2 : [%s]\n", $hashmap{'array'}[2]);

print Dumper \%hashmap;

Discussion

  • MarneusCalgarXP

    MarneusCalgarXP - 2007-07-17
    • summary: bug in string highlight when casting hashmap item in array --> bug in string highlight when casting hashmap item as anarray
     
  • MarneusCalgarXP

    MarneusCalgarXP - 2007-07-17
    • summary: bug in string highlight when casting hashmap item as anarray --> bug in string highlight when casting hashmap item as array
     
  • MarneusCalgarXP

    MarneusCalgarXP - 2007-07-17

    Logged In: YES
    user_id=1570594
    Originator: YES

    I forgot to tell I'm using EPIC v 0.6.11 on Eclipse 3.2, and JDK 1.6.0 update 2

     
  • Dan Dascalescu

    Dan Dascalescu - 2009-07-08

    Bug still there in 0.6.35 - array dereferencing disables string syntax highlight.

    Examples:

    @{mysub('foo')};

    @{$hash{'bar'}};

     
  • Oliver Trosien

    Oliver Trosien - 2016-05-15

    I believe the parser is a bit naive regards the content of a dereferencing statement - i.e. just trying to find the closing curly brace. @{} / %{}. Could be improved.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks