Fix bug#16118
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 14 Dec 2013 06:46:13 +0000 (08:46 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 14 Dec 2013 06:46:13 +0000 (08:46 +0200)
commit276bc3337b27bcd76aa2735ed96c160c6a1b573a
tree998438a0496b773195c79bd11f9372d06497d96f
parentdc7909c40a5524af650a7d4233f393a43bf6706c
Fix bug#16118

* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Return nil before
open-paren tokens when preceded by a open-paren, too.
(ruby-smie-rules): Handle virtual indentation after open-paren
tokens specially.  If there is code between it and eol, return the
column where is starts.

* test/indent/ruby.rb: New examples.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/indent/ruby.rb