summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2013-10-14 04:51:20 +0300
committerDmitry Gutov <dgutov@yandex.ru>2013-10-14 04:51:20 +0300
commit1eda1d8d34c864df5b89464e51f0cbb8e46c5afd (patch)
treee0680733d53ad1d1e5ccbd74e947c660ede5081e /test
parente70181b829d01a7a674c099978688347427a5f33 (diff)
downloademacs-1eda1d8d34c864df5b89464e51f0cbb8e46c5afd.tar.gz
* lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Handle
methods ending with `?' and `!'. * test/indent/ruby.rb: More examples for bug#15594, both failing and now passing.
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog5
-rw-r--r--test/indent/ruby.rb27
2 files changed, 29 insertions, 3 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 7e8405e3676..2f99c003c59 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+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.
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index 67584c01c7a..912648378c3 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -155,6 +155,16 @@ if foo?
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 +
@@ -171,6 +181,17 @@ if 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