# File lib/rcodetools/completion.rb, line 62 def _handle_brackets(expr_orig, expr) [ %w[{ }], %w[( )], %w![ ]! ].each do |left, right| n_left = expr_orig.count(left) - expr.count(left) n_right = expr_orig.count(right) - expr.count(right) n = n_left - n_right @postfix << ";#{left}" * n if n >= 0 end end