Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Syntaxes/PHP.plist
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?x)
<string>(?xi)
\s*(array) # Typehint
\s*(&amp;)? # Reference
\s*((\$+)[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*) # The variable name
Expand Down Expand Up @@ -665,7 +665,7 @@
\s*(&amp;)? # Reference
\s*((\$+)[a-z_\x{7f}-\x{ff}][a-z0-9_\x{7f}-\x{ff}]*) # The variable name
(?:
\s*(?:(=)\s*(?:(null)|(\[)(\])|((?:\S*?\(\))|(?:\S*?)))) # A default value
\s*(?:(=)\s*(?:(null)|(\[)\s*(\])|((?:\S*?\(\))|(?:\S*?)))) # A default value
)?
\s*(?=,|\)|/[/*]|\#|$) # A closing parentheses (end of argument list) or a comma or a comment
</string>
Expand Down