Re: [Visualperl-discuss] fonts and colors not setting properly with underscore...
by Eric Promislow other posts by this author
Apr 18 2005 10:45AM messages near this date
view in the new Beta List Site
[Visualperl-discuss] fonts and colors not setting properly with underscore...
|
[Visualperl-discuss] hash and subs not showing error when duplicate entry
Tom Humphrey wrote:
>
> Compare the following two:
>
> sub time {
> my $self = shift;
> $self->{time} = shift() if (@_);
> return $self->{time};
> }
> sub h_team {
> my $self = shift;
> $self->{h_team} = shift() if (@_);
> return $self->{h_team};
> }
>
> In the IDE, "time" is highlighted an olive color (i set it that way in
> tools->options->env->fonts and colors). However, when I use a string
> that has an underscore, like "h_team" does, it is black (not olive!)
>
> What is going on here? Why is "h_team" not olive like "time"?
It's a bug, logged at http://bugs.activestate.com/show_bug.cgi?id=38313
It seems that if a bareword contains an underscore, the colorizer
doesn't recognize it as a bareword and colors it as an
"identifier", which is terminology for any name in Perl that doesn't
start with a $, %, etc, or is a keyword.
Thanks for finding it,
Eric
>
> Just trying to figure out this darn IDE, thanks for the advice!
>
> Regards,
>
> Tom Humphrey
>
>
> _______________________________________________
> VisualPerl-discuss mailing list
> VisualPerl-discuss@[...].com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
VisualPerl-discuss mailing list
VisualPerl-discuss@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Tom Humphrey
Eric Promislow
|