Home Download Buy Blog Forum Support

[PHP] Does not hightlight namespaces in extends keyword

[PHP] Does not hightlight namespaces in extends keyword

Postby daris on Mon Jan 23, 2012 1:20 pm

I figured out that the namespace is not highlighted after the extends word for class definition, for example:
Code: Select all
class SQLite extends \test\database\Adapter {
   public function runTruncate(\test\database\Query $query)
   {}

Same goes to the parameters in method definition. In above code, the "\test\database\" is not treated as a namespace
daris
 
Posts: 5
Joined: Fri Dec 23, 2011 10:19 am

Re: [PHP] Does not hightlight namespaces in extends keyword

Postby akrabat on Sun Jan 29, 2012 11:26 am

Also, the keyword "namespace" is not highlighted correctly.

In ST 2, build 2171, line 1276 of Packages/PHP/PHP.tmLanguage should read:
Code: Select all
               <string>(?i)\b(real|double|float|int(eger)?|bool(ean)?|string|class|clone|var|function|interface|parent|self|object|namespace)\b</string>


Regards,

Rob...
akrabat
 
Posts: 18
Joined: Wed Dec 21, 2011 3:41 pm

Re: [PHP] Does not hightlight namespaces in extends keyword

Postby niquedegraaff on Tue Feb 12, 2013 3:16 pm

While it is a year ago...
This issue is still not fixed and kinda annoying.
PHP.tmLANGUAGE is horribly outdated..

If somebody has a solution, please share. Thanks.

Extending without namespace
Image

Extending with namespace
Image
niquedegraaff
 
Posts: 2
Joined: Tue Feb 12, 2013 3:12 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 31 guests