Skip to content

Commit bb576b5

Browse files
committed
Revert “Check for a following } even without a space after {“
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 textmate#29
1 parent 1bc1394 commit bb576b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Preferences/Indentation Rules.tmPreferences

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</string>
2222
<key>increaseIndentPattern</key>
2323
<string>(?x)
24-
( \{ (?! .* \} ) .*
24+
( \{ (?! .+ \} ) .*
2525
| array\(
2626
| (\[)
2727
| ((else)?if|else|for(each)?|while|switch) .* :

0 commit comments

Comments
 (0)