Permalink
Browse files

Added correct indentation for new array declaration

As of PHP 5.4, arrays can be declared as `[ ]`, so following PEAR's
style guide, the contents of such arrays could be indented.
  • Loading branch information...
1 parent 18d3448 commit 7dc545300e0088250faf88a799bb1fe9a91da4ab @unRob unRob committed with infininight Oct 17, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 Preferences/Indentation Rules.tmPreferences
@@ -14,6 +14,7 @@
(
(\}) |
(\)[;,]) |
+ (\][;,]) |
(else:) |
((end(if|for(each)?|while|switch));)
)
@@ -22,6 +23,7 @@
<string>(?x)
( \{ (?! .+ \} ) .*
| array\(
+ | (\[)
| ((else)?if|else|for(each)?|while|switch) .* :
) \s* (/[/*] .*)? $</string>
<key>indentNextLinePattern</key>

0 comments on commit 7dc5453

Please sign in to comment.