aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDmitry Gutov2013-10-14 04:51:20 +0300
committerDmitry Gutov2013-10-14 04:51:20 +0300
commit1eda1d8d34c864df5b89464e51f0cbb8e46c5afd (patch)
treee0680733d53ad1d1e5ccbd74e947c660ede5081e /test
parente70181b829d01a7a674c099978688347427a5f33 (diff)
downloademacs-1eda1d8d34c864df5b89464e51f0cbb8e46c5afd.tar.gz
emacs-1eda1d8d34c864df5b89464e51f0cbb8e46c5afd.zip
* 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 @@
12013-10-14 Dmitry Gutov <dgutov@yandex.ru>
2
3 * indent/ruby.rb: More examples for bug#15594, both failing and
4 now passing.
5
12013-10-11 Dmitry Gutov <dgutov@yandex.ru> 62013-10-11 Dmitry Gutov <dgutov@yandex.ru>
2 7
3 * indent/ruby.rb: Add two more cases. 8 * 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?
155 bar 155 bar
156end 156end
157 157
158method arg1, # bug#15594
159 method2 arg2,
160 arg3
161
162method? arg1,
163 arg2
164
165method! arg1,
166 arg2
167
158# Examples below still fail with `ruby-use-smie' on: 168# Examples below still fail with `ruby-use-smie' on:
159 169
160foo + 170foo +
@@ -171,6 +181,17 @@ if foo &&
171 bar 181 bar
172end 182end
173 183
174method1 arg1, # bug#15594 184method !arg1,
175 method2 arg2, 185 arg2
176 arg3 186
187method [],
188 arg2
189
190method {:a => 1, :b => 2},
191 arg2
192
193method :foo,
194 :bar
195
196method (a + b),
197 c