methods ending with `?' and `!'.
* test/indent/ruby.rb: More examples for bug#15594, both failing and
now passing.
+2013-10-14 Dmitry Gutov <dgutov@yandex.ru>
+
+ * progmodes/ruby-mode.el (ruby-smie--args-separator-p): Handle
+ methods ending with `?' and `!'.
+
2013-10-14 Akinori MUSHA <knu@iDaemons.org>
* progmodes/ruby-mode.el (ruby-encoding-map): Add a mapping from
(defun ruby-smie--args-separator-p (pos)
(and
- (eq ?w (char-syntax (char-before)))
+ (or (eq (char-syntax (preceding-char)) '?w)
+ (and (memq (preceding-char) '(?! ??))
+ (eq (char-syntax (char-before (1- (point)))) '?w)))
(< pos (point-max))
(memq (char-syntax (char-after pos)) '(?w ?\"))))
+2013-10-14 Dmitry Gutov <dgutov@yandex.ru>
+
+ * indent/ruby.rb: More examples for bug#15594, both failing and
+ now passing.
+
2013-10-11 Dmitry Gutov <dgutov@yandex.ru>
* indent/ruby.rb: Add two more cases.
bar
end
+method arg1, # bug#15594
+ method2 arg2,
+ arg3
+
+method? arg1,
+ arg2
+
+method! arg1,
+ arg2
+
# Examples below still fail with `ruby-use-smie' on:
foo +
bar
end
-method1 arg1, # bug#15594
- method2 arg2,
- arg3
+method !arg1,
+ arg2
+
+method [],
+ arg2
+
+method {:a => 1, :b => 2},
+ arg2
+
+method :foo,
+ :bar
+
+method (a + b),
+ c