Browse files

Improve indention rules to better match blocks, fixes #2.

  • Loading branch information...
1 parent f46fd74 commit 59cfb5f4adb3ee1ce3e4bfc521092f1da03a5948 @infininight infininight committed Dec 8, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 Preferences/Indentation Rules.tmPreferences
View
12 Preferences/Indentation Rules.tmPreferences
@@ -9,11 +9,17 @@
<key>settings</key>
<dict>
<key>decreaseIndentPattern</key>
- <string>^\s*(?i:end)\b</string>
+ <string>(?i)^\s*(end(if)?\b|(contains|else)\s*$)</string>
<key>increaseIndentPattern</key>
- <string>^\s*((if.*then)|for|do|else|elseif|program|where)\b.*</string>
+ <string>(?ix)
+ ^\s*
+ (
+ (((integer\s+)?recursive|(recursive\s+)?integer)\s+)?function\b
+ | ((if.*then)|for|do|else|elseif|program|where|type|module|program|subroutine|interface)\b
+ | (contains|else)\s*$
+ )</string>
<key>unIndentedLinePattern</key>
- <string>^\s*[cC]\s*.*$</string>
+ <string>^\s*[cC]\s+.*$</string>
</dict>
<key>uuid</key>
<string>DF8B5C60-9DCD-4180-8FE0-6CEA5050EFE7</string>

0 comments on commit 59cfb5f

Please sign in to comment.