Permalink
Browse files

• add a few commands and also increase/decrease indent when wrapping …

…command parameters over multiple lines.

git-svn-id: http://svn.textmate.org/trunk/Review/Bundles/CMake.tmbundle@9637 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 32e4f7c commit 10d856aab7a4e1844212ea53caeadc6c416559cc @sorbits sorbits committed May 20, 2008
Showing with 10 additions and 2 deletions.
  1. +10 −2 Preferences/Indentation Rules.tmPreferences
@@ -9,9 +9,17 @@
<key>settings</key>
<dict>
<key>decreaseIndentPattern</key>
- <string>(?i)end(if|foreach|while)|else</string>
+ <string>(?xi)
+ \b end(function|macro|if|foreach|while) \b
+ | \b else(if)? \b
+ | ^ [^(]* \) \s* $
+ </string>
<key>increaseIndentPattern</key>
- <string>(?i)(if|foreach|while|else)</string>
+ <string>(?xi)
+ \b (function|macro|if|foreach|while) \b
+ | \b else(if)? \b
+ | \( [^)]* $
+ </string>
</dict>
<key>uuid</key>
<string>D58FED93-633B-4C26-89C1-53198843416A</string>

0 comments on commit 10d856a

Please sign in to comment.