diff --git a/Indent.tmPreferences b/Indent.tmPreferences index 0f473bd..0287ec5 100644 --- a/Indent.tmPreferences +++ b/Indent.tmPreferences @@ -8,7 +8,7 @@ settings decreaseIndentPattern - (^.*(?!.*(\"|\'|\[\=*\[))(elseif|else|end|until).*$|^((?!\{).)*\}\;?.*$) + (^(?!=.*(then|do).*).*(elseif|else|end|until)(?!.*(\"|\'|\[\=*\[)).*$|^((?!\{).)*\}\;?.*$) increaseIndentPattern (^.*(else|(local\s+)?function|repeat)\b((?!\bend\b).)*$|^.*(do|then)\b((?!\bend\b).)*$|^.*\{((?!\}).)*$)