diff --git a/example.rb b/example.rb index dcec5de..55ee7d3 100755 --- a/example.rb +++ b/example.rb @@ -96,6 +96,12 @@ def method_with_nested_hash_args ) end - def end_method #this should be spaced correctly + def end_method # this should be spaced correctly + end + + def double_open_parens + assert_equal( 123, Some::Thing.foo( + + ) ) end end diff --git a/ruby-mode.el b/ruby-mode.el index 1c344ad..5f7348c 100644 --- a/ruby-mode.el +++ b/ruby-mode.el @@ -602,8 +602,7 @@ and `\\' when preceded by `?'." (setq nest (cons (list (char-after (point)) pnt depth) nest)) ;; same line as previous open [{(, don't indent again (if (and previous-nest - (ruby-open-list-p previous-nest) - (and (not (eq (car previous-nest) (caar nest))))) + (ruby-open-list-p previous-nest)) nil ;; no-op (setq depth (1+ depth))))) (goto-char pnt)