Permalink
Browse files

More robust auto-indentation

  • Loading branch information...
1 parent 9cab4ca commit 2e051202b09fb98bdc1d90e2ba4e46e8e7ce33d0 @djspiewak committed Apr 22, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 scala.xml
View
@@ -7,8 +7,8 @@
<PROPERTY NAME="indentOpenBrackets" VALUE="{" />
<PROPERTY NAME="indentCloseBrackets" VALUE="}" />
<PROPERTY NAME="lineUpClosingBracket" VALUE="true" />
- <PROPERTY NAME="indentPrevLine"
- VALUE="\s*(((if|while)\s*\(|else\s*(\{|$)|else\s+if\s*\(|case\s+.+:|default:)[^;]*|for\s*\(.*)" />
+ <PROPERTY NAME="indentNextLine"
+ VALUE="\s*(((if|while|else\s+if|for)\s*\(|else\s*).*\)|case.*=>)\s*$"/>
<!-- set this to 'true' if you want to use GNU coding style -->
<PROPERTY NAME="doubleBracketIndent" VALUE="false" />
<PROPERTY NAME="commentStart" VALUE="/*" />

0 comments on commit 2e05120

Please sign in to comment.