diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-26 08:43:08 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-26 10:49:23 +0900 |
commit | a3d1cacda634b83032f79774d9a0e9e0c9c24cc8 (patch) | |
tree | c0875ab721759ee6aa8ddf9684bf3dc7c8c2b9f8 /lib | |
parent | ea8bc6822da742f5818b13f444b5670a0e041dae (diff) |
Decrease indent at "elsif" too
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/ruby-lex.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 78c5bf3ea0..f8127b7bd2 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -332,7 +332,7 @@ class RubyLex unless t[3].allbits?(Ripper::EXPR_LABEL) depth_difference += 1 end - when 'else', 'rescue', 'ensure', 'when', 'in' + when 'else', 'elsif', 'rescue', 'ensure', 'when', 'in' depth_difference += 1 end end @@ -377,7 +377,7 @@ class RubyLex unless t[3].allbits?(Ripper::EXPR_LABEL) spaces_of_nest.push(spaces_at_line_head) end - when 'else', 'rescue', 'ensure', 'when', 'in' + when 'else', 'elsif', 'rescue', 'ensure', 'when', 'in' corresponding_token_depth = spaces_of_nest.last when 'end' if is_first_printable_of_line |