Invalid Error: indent/outdent mismatch for 'block condition'
reversi-fun opened this issue · 0 comments
reversi-fun commented
I encountered invalid results.
>rbeautify ident2.rb
..............ruby/lib/ruby/gems/2.2.0/gems/rbeautify-0.0.7/lib/rbeautify.rb:115: warning: character class has duplicated range: /.*=\s*<<-?\s*([_|\w]+).*/
Error: indent/outdent mismatch: -1.
--ident2.rb
if !('one two tree'.match(/(\w+)/) { |matched_word|
p [matched_word,matched_word.offset(0)]
}).nil? # end of block condition
p 'sucess'
else
p 'failed'
end # endif
best reguards.