aboutsummaryrefslogtreecommitdiffstats
path: root/test/indent/ruby.rb
diff options
context:
space:
mode:
authorDmitry Gutov2013-10-23 00:47:29 +0400
committerDmitry Gutov2013-10-23 00:47:29 +0400
commita6462ef558928da82279e437399cc169fb60b7ef (patch)
treebe2946659dc041a9263357bcc7f07fd9a3f7371b /test/indent/ruby.rb
parent7790a27058bf9ec3dcdf31746853f125d6c84693 (diff)
downloademacs-a6462ef558928da82279e437399cc169fb60b7ef.tar.gz
emacs-a6462ef558928da82279e437399cc169fb60b7ef.zip
* test/indent/ruby.rb: Move two examples to "working" section, add one
more.
Diffstat (limited to 'test/indent/ruby.rb')
-rw-r--r--test/indent/ruby.rb18
1 files changed, 11 insertions, 7 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index 5c47eea0baf..7ce60f5f58b 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -193,6 +193,16 @@ foo_bar_tee(1, 2, 3)
193 .qux 193 .qux
194 .bar 194 .bar
195 195
196foo do
197 bar
198 .tee
199end
200
201def bar
202 foo
203 .baz
204end
205
196# Examples below still fail with `ruby-use-smie' on: 206# Examples below still fail with `ruby-use-smie' on:
197 207
198foo = [1, 2, 3].map do |i| 208foo = [1, 2, 3].map do |i|
@@ -211,12 +221,6 @@ method :foo,
211method (a + b), 221method (a + b),
212 c 222 c
213 223
214foo do 224bar.foo do # "." is parent to "do"; it shouldn't be.
215 bar 225 bar
216 .tee
217end
218
219def bar
220 foo
221 .baz
222end 226end