File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
app/server/ruby/vendor/ruby-beautify/lib/ruby-beautify/config Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 52
52
:nest_except => [ :double_quote , :single_quote , :regex , :back_tick ] )
53
53
54
54
ruby . add_matcher ( :standard ,
55
- /(( #{ start_statement_boundary } (module|class|def))| #{ pre_keyword_boundary } do #{ post_keyword_boundary } )/ ,
55
+ /(#{ start_statement_boundary } (module|class|def))/ ,
56
56
/(((^|;|\s )end)|#{ continue_statement_boundary } (rescue|ensure))\b / ,
57
57
:nest_except => [ :double_quote , :regex , :backtick ] )
58
58
61
61
/(((^|;|\s )end)|#{ continue_statement_boundary } (rescue|ensure))\b / ,
62
62
:nest_except => [ :double_quote , :regex , :backtick ] )
63
63
64
+ ruby . add_matcher ( :do ,
65
+ /#{ pre_keyword_boundary } do#{ post_keyword_boundary } / ,
66
+ /(((^|;|\s )end)|#{ continue_statement_boundary } (rescue|ensure))\b / ,
67
+ :nest_except => [ :double_quote , :regex , :backtick , :more ] )
68
+
64
69
ruby . add_matcher ( :begin ,
65
70
/((#{ start_statement_boundary } begin)|(#{ continue_statement_boundary } (ensure|rescue)))\b / ,
66
71
/(((^|;|\s )end)|#{ continue_statement_boundary } (rescue|ensure|else))\b / ,
You can’t perform that action at this time.
0 commit comments