Sublime Forum

[PHP] Does not hightlight namespaces in extends keyword

#1

I figured out that the namespace is not highlighted after the extends word for class definition, for example:

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

0 Likes

#2

Also, the keyword “namespace” is not highlighted correctly.

In ST 2, build 2171, line 1276 of Packages/PHP/PHP.tmLanguage should read:

					<string>(?i)\b(real|double|float|int(eger)?|bool(ean)?|string|class|clone|var|function|interface|parent|self|object|namespace)\b</string>

Regards,

Rob…

0 Likes

#3

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

Extending with namespace

0 Likes