diff options
author | aycabta <aycabta@gmail.com> | 2019-06-27 10:59:08 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-06-27 10:59:26 +0900 |
commit | d6bcf367936e92b8662dce969bc6b48ae2112d45 (patch) | |
tree | 9482b1d8c10fd76752130a5b20f926814910307a /lib | |
parent | 7172ab0ec523fd190f661f52e999307d2e34429f (diff) |
EXPR_CMDARG also indicates the end of an expression
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 41891f8987..6f8076c261 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -308,7 +308,7 @@ class RubyLex def check_newline_depth_difference depth_difference = 0 - if @tokens.size >= 2 and @tokens.last[2].end_with?("\n") and @tokens[-2][3].nobits?(Ripper::EXPR_END | Ripper::EXPR_ENDFN) + if @tokens.size >= 2 and @tokens.last[2].end_with?("\n") and @tokens[-2][3].nobits?(Ripper::EXPR_END | Ripper::EXPR_ENDFN | Ripper::EXPR_CMDARG) return 1 end @tokens.each_with_index do |t, index| |