lib/textbringer/modes/ruby_mode.rb in textbringer-1.0.2 vs lib/textbringer/modes/ruby_mode.rb in textbringer-1.0.3

- old
+ new

@@ -281,10 +281,11 @@ indentation end end BLOCK_END = { + '#{' => "}", "{" => "}", "(" => ")", "[" => "]" } @@ -324,10 +325,10 @@ raise EditorError, "#{@buffer.name}:#{line}: Unmatched #{text}" end stack.pop end end - return nil, stack.size + return nil, stack.grep_v(/[)\]]/).size end def find_test_target_path(base, namespace, name) patterns = [] if namespace