Permalink
Browse files

Fix regression causing `namespace\foo();` to match as meta.namespace.php

  • Loading branch information...
1 parent 4be1fbe commit d96d31af6a2b085fcbfc7bc8985165c168133622 @joshvarner joshvarner committed with Josh Varner Dec 8, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Syntaxes/PHP.plist
View
@@ -1249,7 +1249,7 @@
</dict>
<dict>
<key>begin</key>
- <string>(?i)^\s*(namespace)\b</string>
+ <string>(?i)^\s*(namespace)\b\s+(?=([a-z0-9_\\]+\s*($|[;{]|(\/[\/*])))|$)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
@@ -1261,7 +1261,7 @@
<key>contentName</key>
<string>entity.name.type.namespace.php</string>
<key>end</key>
- <string>$|(?=[;{])</string>
+ <string>(?i)(?=\s*$|[^a-z0-9_\\])</string>
<key>name</key>
<string>meta.namespace.php</string>
<key>patterns</key>

0 comments on commit d96d31a

Please sign in to comment.