Permalink
Browse files

Don’t increase indent for ‘{}’.

This construct generally should not appear in code, but temporarily appears when typing auto-paired braces. It’s basically a workaround for that.
  • Loading branch information...
1 parent 382ac92 commit 421ef13a9135ee14f24b20ab11eaf104e7e826ae @sorbits sorbits committed Jan 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 Preferences/Miscellaneous.plist
View
4 Preferences/Miscellaneous.plist
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
@@ -11,7 +11,7 @@
<key>decreaseIndentPattern</key>
<string>^(.*\*/)?\s*\}[;\s]*$</string>
<key>increaseIndentPattern</key>
- <string>^.*(\{[^}"']*|\([^)"']*)$</string>
+ <string>^.*(\{\}?[^}"']*|\([^)"']*)$</string>
<key>smartTypingPairs</key>
<array>
<array>

0 comments on commit 421ef13

Please sign in to comment.