Merge pull request #34303 from rinqu-eu/master

Add indentationRules to lua
This commit is contained in:
Alexandru Dima
2017-09-27 12:25:08 +02:00
committed by GitHub
+2 -2
View File
@@ -23,7 +23,7 @@
["'", "'"]
],
"indentationRules": {
"increaseIndentPattern": "^\\s*(((?:local\\s+)?function|else|elseif|for|if|until|while)|(.*\\sdo\\b))\\b[^\\{;]*$",
"decreaseIndentPattern": "^\\s*((end|else|elseif)|[}\\]]\b)"
"increaseIndentPattern": "((\\b(else|function|then|do|repeat)\\b((?!\\b(end|until)\\b).)*)|(\\{\\s*))$",
"decreaseIndentPattern": "^\\s*((\\b(elseif|else|end|until)\\b)|(\\})|(\\)))"
}
}