We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e12a7a commit d49e9fbCopy full SHA for d49e9fb
src/languages/php.js
@@ -72,8 +72,8 @@ function(hljs) {
72
PREPROCESSOR,
73
VARIABLE,
74
{
75
- // swallow class members to avoid parsing them as keywords
76
- begin: /->+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/
+ // swallow composed identifiers to avoid parsing them as keywords
+ begin: /(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/
77
},
78
79
className: 'function',
test/detect/php/default.txt
@@ -35,7 +35,7 @@ line description';
35
}
36
37
$this->var = 0 - self::$st;
38
- $this->list = list(Array("1"=> 2, 2=>self::ME));
+ $this->list = list(Array("1"=> 2, 2=>self::ME, 3 => \Location\Web\URI::class));
39
40
return [
41
'uri' => $uri,
0 commit comments