From 210185a525230e715668d641ac6da31ccc9720cb Mon Sep 17 00:00:00 2001 From: rinqu-eu Date: Wed, 13 Sep 2017 17:12:17 +0200 Subject: [PATCH] Add indentationRules to lua --- extensions/lua/language-configuration.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/extensions/lua/language-configuration.json b/extensions/lua/language-configuration.json index 5a26730ed02..73618cfe630 100644 --- a/extensions/lua/language-configuration.json +++ b/extensions/lua/language-configuration.json @@ -21,5 +21,9 @@ ["(", ")"], ["\"", "\""], ["'", "'"] - ] -} \ No newline at end of file + ], + "indentationRules": { + "increaseIndentPattern": "((\\b(else|function|then|do|repeat)\\b((?!\\b(end|until)\\b).)*)|(\\{\\s*))$", + "decreaseIndentPattern": "^\\s*((\\b(elseif|else|end|until)\\b)|(\\})|(\\)))" + } +}