Skip to content

Commit 8ee0716

Browse files
committed
• function modifiers (final, static, abstract, public, etc.) are now matched as a single optionally repeated alternation, so there is no requirement of ordering, though this also will match stuff declared both as public and private or which use the static keyword twice
git-svn-id: http://svn.textmate.org/trunk/Bundles/PHP.tmbundle@3357 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
1 parent c8b0849 commit 8ee0716

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

Syntaxes/PHP.plist

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
<string>(/\*|\{\s*$|&lt;&lt;&lt;HTML)</string>
99
<key>foldingStopMarker</key>
1010
<string>(\*/|^\s*\}|^HTML;)</string>
11-
<key>keyEquivalent</key>
12-
<string></string>
1311
<key>name</key>
1412
<string>✘ PHP ➡ Use HTML</string>
1513
<key>patterns</key>
@@ -301,30 +299,20 @@
301299
</dict>
302300
<dict>
303301
<key>begin</key>
304-
<string>(?:^\s*)(final|abstract)?\s*(public|private|protected)?\s*(static)?\s*(function)\s*([&amp;a-zA-Z0-9_]+)\s*\(</string>
302+
<string>(?:^\s*)((?:(?:final|abstract|public|private|protected|static)\s+)*)(function)\s*([&amp;a-zA-Z0-9_]+)\s*\(</string>
305303
<key>captures</key>
306304
<dict>
307305
<key>1</key>
308306
<dict>
309307
<key>name</key>
310-
<string>storage.modifier.abstract-or-final.php</string>
308+
<string>storage.modifier.php</string>
311309
</dict>
312310
<key>2</key>
313-
<dict>
314-
<key>name</key>
315-
<string>storage.modifier.visibility.php</string>
316-
</dict>
317-
<key>3</key>
318-
<dict>
319-
<key>name</key>
320-
<string>storage.modifier.static.php</string>
321-
</dict>
322-
<key>4</key>
323311
<dict>
324312
<key>name</key>
325313
<string>storage.type.function.php</string>
326314
</dict>
327-
<key>5</key>
315+
<key>3</key>
328316
<dict>
329317
<key>name</key>
330318
<string>entity.name.function.php</string>

0 commit comments

Comments
 (0)