Skip to content

Commit

Permalink
Revert “Check for a following } even without a space after {“
Browse files Browse the repository at this point in the history
This change caused an indentation glitch after an if clause when putting the braces on the line following the if statement. Original commit was the prevent `{}` from increasing the indent, will have to revisit that in another fashion.

Fixes #29
  • Loading branch information
infininight committed Jan 22, 2013
1 parent 1bc1394 commit bb576b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Preferences/Indentation Rules.tmPreferences
Expand Up @@ -21,7 +21,7 @@
</string> </string>
<key>increaseIndentPattern</key> <key>increaseIndentPattern</key>
<string>(?x) <string>(?x)
( \{ (?! .* \} ) .* ( \{ (?! .+ \} ) .*
| array\( | array\(
| (\[) | (\[)
| ((else)?if|else|for(each)?|while|switch) .* : | ((else)?if|else|for(each)?|while|switch) .* :
Expand Down

0 comments on commit bb576b5

Please sign in to comment.