Skip to content

Commit

Permalink
Fix Indentation
Browse files Browse the repository at this point in the history
Another attempt at a correct indent setting. This time, the regex is
even scarier than usual. Closes #3
  • Loading branch information
viluon committed Jun 21, 2016
1 parent 4340bc7 commit 4c3c59a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Indent.tmPreferences
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<key>name</key>
<string>Indent</string>
<key>scope</key>
<string>source.luae</string>
<string>source.luae - string - comment</string>
<key>settings</key>
<dict>
<key>decreaseIndentPattern</key>
<string>(^(?!=.*(then|do).*).*(elseif|else|end|until)(?!.*(\"|\'|\[\=*\[)).*$|^((?!\{).)*\}\;?.*$)</string>

<key>increaseIndentPattern</key>
<string>(^.*(else|(local\s+)?function|repeat)\b((?!\bend\b).)*$|^.*(do|then)\b((?!\bend\b).)*$|^.*\{((?!\}).)*$)</string>
<string>(^.*\b((local\s+)?function|repeat)(?!.*(\"|\'|\[\=*\[))\b((?!\bend\b).)*$|^.*\b(do|then|else)(?!.*(\"|\'|\[\=*\[))\b((?!\bend\b).)*$|^.*\{((?!\}).)*$)</string>
</dict>
</dict>
</plist>

0 comments on commit 4c3c59a

Please sign in to comment.