Add indentationRules to lua
This commit is contained in:
parent
a400e3a239
commit
210185a525
1 changed files with 6 additions and 2 deletions
|
@ -21,5 +21,9 @@
|
||||||
["(", ")"],
|
["(", ")"],
|
||||||
["\"", "\""],
|
["\"", "\""],
|
||||||
["'", "'"]
|
["'", "'"]
|
||||||
]
|
],
|
||||||
|
"indentationRules": {
|
||||||
|
"increaseIndentPattern": "((\\b(else|function|then|do|repeat)\\b((?!\\b(end|until)\\b).)*)|(\\{\\s*))$",
|
||||||
|
"decreaseIndentPattern": "^\\s*((\\b(elseif|else|end|until)\\b)|(\\})|(\\)))"
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue