* lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Allow the
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 19 Dec 2013 04:21:44 +0000 (06:21 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 19 Dec 2013 04:21:44 +0000 (06:21 +0200)
commit7e1549c91db69fab8818318112f8a793d50ad731
treefef31dc8252944f96a187dbf1d4a7ad2f391b12a
parent3ee4cd6482abbabb06630a6c725277d42061eee7
* lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Allow the
first arg to be a string (fixed dead code), or an operator symbol.
(ruby-smie--forward-token): Tokenize ` @ ' before strings and
operator symbols.
(ruby-smie-rules): Remove parent token check in the `.' clause, it
did nothing.  Don't respond to `(:after ".")', it will be called
with :before anyway.  Remove the ` @ ' rule, it didn't seem to
change anything.  Only return indentation for binary operators
when they are hanging.  De-dent opening paren when its parent is
`.', otherwise it looks bad when the dot is not at bol or eol.

Fixes: debbugs:16182
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/indent/ruby.rb