@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | 'context' => ['comment.docblock'] |
71 | 71 | ]), |
72 | 72 | |
73 | - 'call' => new Rule(new RegexMatcher('/(' . self::IDENTIFIER . ')\s*\(/iu'), ['priority' => -1]), |
|
73 | + 'call' => new Rule(new RegexMatcher('/('.self::IDENTIFIER.')\s*\(/iu'), ['priority' => -1]), |
|
74 | 74 | |
75 | 75 | 'keyword' => new Rule(new WordMatcher([ |
76 | 76 | 'do', 'if', 'in', 'for', 'let', 'new', 'try', 'var', 'case', 'else', 'enum', 'eval', |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | ]) |
100 | 100 | ], |
101 | 101 | |
102 | - 'variable' => new Rule(new RegexMatcher('/\b(?<!\.)(' . self::IDENTIFIER . ':?)/iu'), [ |
|
102 | + 'variable' => new Rule(new RegexMatcher('/\b(?<!\.)('.self::IDENTIFIER.':?)/iu'), [ |
|
103 | 103 | 'priority' => -1, |
104 | 104 | 'enabled' => $this->variables |
105 | 105 | ]), |