Skip to content

Commit 4354805

Browse files
committed
Update keyword-highlighting rules
1 parent f639c7a commit 4354805

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/KeywordEnhancer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class KeywordEnhancer {
99
'/(?<![`>()-])\bext\/[a-z_\d\/-]+\.phpt\b(?![`])/i', // ext/test/test/test.phpt
1010
'/\b(?<![`\/])[a-z][a-z\d_-]+(.stubs?)?\.(phpt?|c|h)(?![`.?])/', // run-tests.php / foo.stub.php foo.stubs.php / test-foo-bar.phpt,
1111
'/\b(?<!`)ext\/[a-z_]+\b(?![`\/])/', // ext-names
12-
'/\b(?<!`)__[a-z][a-zA-Z\d_]+\(\)(?![`ws])/', // __debugInfo()
12+
'/\b(?<![`:])__[a-z][a-zA-Z\d_]+\(\)(?![`ws])/', // __debugInfo()
1313
'/\b(?<!`)[A-Za-z][A-Za-z\d]+::(?:__)?[a-z][A-Za-z\d_]+\(\)(?![`\/-])/', // Class::methods()
1414
'/\b(?<!`)[A-Z][A-Za-z]+::(?:__)[a-z][A-Za-z\d_]+(?![`\/-])\b(?![)(])/', // Class::__magicMethods
1515
'/\b(?<!`)[A-Z][A-Za-z]+::[A-Z][A-Z_\d]+\b(?![`\/(])/', // Class::CONSTANTS

tests/KeywordEnhancerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ public static function dataCodifyText(): array {
168168
'Add an enum for HASH_KEY_IS constants',
169169
'Add an enum for `HASH_KEY_IS` constants',
170170
],
171+
[
172+
'Deprecate SplFixedArray::__wakeup()',
173+
'Deprecate `SplFixedArray::__wakeup()`',
174+
],
171175
];
172176
}
173177

0 commit comments

Comments
 (0)