ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> visualperl-discuss
visualperl-discuss
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved