Permalink
Browse files

Decrease indent when ‘}’ is followed by ‘)’

This happens when passing a block as last argument, e.g.:

    read_async(file, callback_queue, ^{
        printf("received callback.\n");
    });
  • Loading branch information...
sorbits committed Sep 30, 2012
1 parent 775e702 commit 506ea657243d98d09ff23712f0dc029e140a381d
Showing with 1 addition and 1 deletion.
  1. +1 −1 Preferences/Indentation Rules.plist
@@ -10,7 +10,7 @@
<dict>
<key>decreaseIndentPattern</key>
<string>(?x)
- ^ (.*\*/)? \s* \} ( [^}{"']* \{ | \s* while \s* \( .* )? [;\s]* (//.*|/\*.*\*/\s*)? $
+ ^ (.*\*/)? \s* \} ( \) | [^}{"']* \{ | \s* while \s* \( .* )? [;\s]* (//.*|/\*.*\*/\s*)? $
| ^ \s* (public|private|protected): \s* $
| ^ \s* @(public|private|protected) \s* $
</string>

0 comments on commit 506ea65

Please sign in to comment.