Add indentation rules support for gdscript

This commit is contained in:
Geequlim
2017-08-10 13:51:49 +08:00
parent f36169d685
commit b08c61ac8d
2 changed files with 8 additions and 4 deletions

View File

@@ -21,5 +21,9 @@
["(", ")"],
["[", "]"],
["{", "}"]
]
}
],
"indentationRules": {
"increaseIndentPattern": "^\\s*((class|func|else|elif|for|if|match|while|enum)|(.*\\sdo\\b))\\b[^\\{;]*$",
"decreaseIndentPattern": "^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(else|elif|return|break|continue)\\b)"
}
}