Completed
Push — master ( b88ac2...2f41a7 )
by Kacper
03:07
created
Language/JavaScript.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             ]),
Please login to merge, or discard this patch.