Prevent incorrect indentation for Ruby's in and when keywords

Co-authored-by: Soutaro Matsumoto <soutaro@users.noreply.github.com>
This commit is contained in:
Vinicius Stock 2023-11-15 11:32:53 -08:00
parent f40051b610
commit bd0c11e1d4
No known key found for this signature in database
GPG key ID: 196E0FB0D265AFFE

View file

@ -26,6 +26,6 @@
],
"indentationRules": {
"increaseIndentPattern": "^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|in|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|(\"|'|\/).*\\4)*(#.*)?$",
"decreaseIndentPattern": "^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when|in)\\b)"
"decreaseIndentPattern": "^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif)\\b)|((in|when)\\s)"
}
}