Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions ruby-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down