mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
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:
parent
f40051b610
commit
bd0c11e1d4
|
@ -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)"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue