Skip to content

Commit bd84d7d

Browse files
committed
Avoid indenting after endless method definition
1 parent 93e27be commit bd84d7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vscode/languages/ruby.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"indentationRules": {
3-
"decreaseIndentPattern": "^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif)\\b)|((in|when)\\s)"
3+
"increaseIndentPattern": "^\\s*((begin|class|(private|protected)\\s+def(?!\\s+[\\w.]+[!?=]?(?:\\([^)]*\\))?\\s*=[^=~>])|def(?!\\s+[\\w.]+[!?=]?(?:\\([^)]*\\))?\\s*=[^=~>])|else|elsif|ensure|for|if|module|rescue|unless|until|when|in|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|(\"|'|\/).*\\4)*(#.*)?$"
44
}
55
}

0 commit comments

Comments
 (0)