We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1.times do
1 parent 67fa48b commit 6b8eca4Copy full SHA for 6b8eca4
lib/irb/ruby-lex.rb
@@ -336,7 +336,7 @@ def check_newline_depth_difference
336
next if index > 0 and @tokens[index - 1][3].allbits?(Ripper::EXPR_FNAME)
337
case t[2]
338
when 'do'
339
- if index > 0 and @tokens[index - 1][3].anybits?(Ripper::EXPR_CMDARG | Ripper::EXPR_ENDFN)
+ if index > 0 and @tokens[index - 1][3].anybits?(Ripper::EXPR_CMDARG | Ripper::EXPR_ENDFN | Ripper::EXPR_ARG)
340
# method_with_block do; end
341
depth_difference += 1
342
else
0 commit comments