lib/skeptic/rules/spaces_around_operators.rb in skeptic-0.0.8 vs lib/skeptic/rules/spaces_around_operators.rb in skeptic-0.0.9

- old
+ new

@@ -79,9 +79,15 @@ sexp_location = block.last.last.last symbol_location = [sexp_location[0], sexp_location[1] - 1] mark_special_tokens symbol_location when :vcall, :var_ref mark_special_tokens block.last.last + when :call + token = block + while token.first == :call + token = token[1] + end + mark_special_tokens token.last.last end end end on :mlhs_add_star, :args_add_star do |_, ident|