Customize indent rules in language configuration

This commit is contained in:
rebornix
2017-06-19 13:39:28 -07:00
parent c072037b4a
commit 12e35dfb3e
6 changed files with 147 additions and 60 deletions

View File

@@ -21,5 +21,9 @@
["(", ")"],
["\"", "\""],
["'", "'"]
]
],
"indentationRules": {
"increaseIndentPattern": "^\\s*((begin|class|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while)|(.*\\sdo\\b))\\b[^\\{;]*$",
"decreaseIndentPattern": "^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)"
}
}