Skip to content

Commit

Permalink
Allow matching class-names at end of a string
Browse files Browse the repository at this point in the history
This allows using the match inside of a capture.
  • Loading branch information
infininight committed Mar 27, 2018
1 parent 23bd413 commit d4a7aec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Syntaxes/PHP.plist
Expand Up @@ -258,7 +258,7 @@
<key>begin</key>
<string>(?i)(?=\\?[a-z_0-9]+\\)</string>
<key>end</key>
<string>(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\])</string>
<string>(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\]|\z)</string>
<key>endCaptures</key>
<dict>
<key>1</key>
Expand All @@ -283,7 +283,7 @@
<key>begin</key>
<string>(?=[\\a-zA-Z_])</string>
<key>end</key>
<string>(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\])</string>
<string>(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\]|\z)</string>
<key>endCaptures</key>
<dict>
<key>1</key>
Expand Down Expand Up @@ -2472,7 +2472,7 @@
<key>namespace</key>
<dict>
<key>begin</key>
<string>(?i)(?:(namespace)|[a-z0-9_]+)?(\\)(?=.*?[^a-z_0-9\\])</string>
<string>(?i)(?:(namespace)|[a-z0-9_]+)?(\\)(?=.*?([^a-z0-9_\\]|\z))</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
Expand All @@ -2487,7 +2487,7 @@
</dict>
</dict>
<key>end</key>
<string>(?i)(?=[a-z0-9_]*[^a-z0-9_\\])</string>
<string>(?i)(?=[a-z0-9_]*([^a-z0-9_\\]|\z))</string>
<key>name</key>
<string>support.other.namespace.php</string>
<key>patterns</key>
Expand Down

0 comments on commit d4a7aec

Please sign in to comment.