Skip to content

Commit

Permalink
Add private/protected def to Ruby indenters
Browse files Browse the repository at this point in the history
  • Loading branch information
Pistos committed Feb 20, 2018
1 parent d427de9 commit a97995c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diakonos.conf
Expand Up @@ -1001,7 +1001,7 @@ lang.ruby.indent.auto true
lang.ruby.indent.roundup true
#lang.ruby.indent.using_tabs true
lang.ruby.tabsize 2
lang.ruby.indent.indenters ^\s*(case|def|begin|ensure|when|else|ensure|for|while|until|elsif|if|class|module|rescue)\b|([{\[(]$|\{\s*\|[\w\s,]*\|\s*$)|\b(do)\b
lang.ruby.indent.indenters ^\s*(case|(?:(?:private|protected) )?def|begin|ensure|when|else|ensure|for|while|until|elsif|if|class|module|rescue)\b|([{\[(]$|\{\s*\|[\w\s,]*\|\s*$)|\b(do)\b
lang.ruby.indent.unindenters ^\s*(end|else|elsif|ensure|when|rescue)\b|(^\s*[\]})])
lang.ruby.indent.preventers (\".+?[^\\]\")|('.+?[^\\]')|(`.+?[^\\]`)|(\/.+?[^\\]\/)|(^\s*#.*)|\S\s+if
lang.ruby.indent.ignore ^\s*$
Expand Down

0 comments on commit a97995c

Please sign in to comment.