opensubscriber
   Find in this group all groups
 
Unknown more information…

v : visualperl-discuss@listserv.ActiveState.com 19 April 2005 • 1:12AM -0400

Re: [Visualperl-discuss] fonts and colors not setting properly with underscore...
by Eric Promislow

REPLY TO AUTHOR
 
REPLY TO GROUP




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@list...
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


_______________________________________________
VisualPerl-discuss mailing list
VisualPerl-discuss@list...
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.