[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-source-highlight] variable definition in php.lang and python.l
From: |
Lorenzo Bettini |
Subject: |
Re: [Help-source-highlight] variable definition in php.lang and python.lang |
Date: |
Fri, 03 Aug 2007 18:20:19 +0200 |
User-agent: |
Mozilla-Thunderbird 2.0.0.4 (X11/20070622) |
address@hidden wrote:
There seems to be a strange definition in php.lang and python.lang:
$ grep :upper: *.lang
php.lang:variable = '[[:upper:]][[:word:]]*|_'
prolog.lang:variable = '[[:upper:]][[:word:]]*|_'
python.lang:variable = '[[:upper:]][[:word:]]*|_'
I believe this is correct for Prolog, but for Python or PHP ...?
I guess you're right! That must be an old cut&paste...
variables are defined in the line
type = '(?:\$[#]?|@|%)[[:word:]]+'
it's misleading since it is called as type (it was due to previous
versions where the variable style was not included). Actually variable
and type are formatted the same way so the problem doesn't show, but I
need to update these .lang files!
thanks for the feedback
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net