From 4c3c59a3c9a8be2de1e6ac74b91367d1f1d057bb Mon Sep 17 00:00:00 2001 From: Andrew Kvapil Date: Tue, 21 Jun 2016 15:16:25 +0200 Subject: [PATCH] Fix Indentation Another attempt at a correct indent setting. This time, the regex is even scarier than usual. Closes #3 --- Indent.tmPreferences | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Indent.tmPreferences b/Indent.tmPreferences index 0287ec5..ef15e01 100644 --- a/Indent.tmPreferences +++ b/Indent.tmPreferences @@ -4,14 +4,14 @@ name Indent scope - source.luae + source.luae - string - comment settings decreaseIndentPattern (^(?!=.*(then|do).*).*(elseif|else|end|until)(?!.*(\"|\'|\[\=*\[)).*$|^((?!\{).)*\}\;?.*$) increaseIndentPattern - (^.*(else|(local\s+)?function|repeat)\b((?!\bend\b).)*$|^.*(do|then)\b((?!\bend\b).)*$|^.*\{((?!\}).)*$) + (^.*\b((local\s+)?function|repeat)(?!.*(\"|\'|\[\=*\[))\b((?!\bend\b).)*$|^.*\b(do|then|else)(?!.*(\"|\'|\[\=*\[))\b((?!\bend\b).)*$|^.*\{((?!\}).)*$)