diff options
author | aycabta <aycabta@gmail.com> | 2020-08-17 10:41:31 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-08-18 14:38:02 +0900 |
commit | a30dea5852b5ece74e435d912596983d2654580a (patch) | |
tree | f466677f437c8aa230e8cec87e1de38b54ed5f1a /lib | |
parent | 43c648c8325db536715a8e827951ac48114eb6bd (diff) |
[ruby/irb] Support shortening lambda notetion for nesting level of prompt
https://github.com/ruby/irb/commit/f1a775af47
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/ruby-lex.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index a90c97c6b2..7be77fd12e 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -329,7 +329,7 @@ class RubyLex end case t[1] - when :on_lbracket, :on_lbrace, :on_lparen + when :on_lbracket, :on_lbrace, :on_lparen, :on_tlambeg indent += 1 when :on_rbracket, :on_rbrace, :on_rparen indent -= 1 |