aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2013-10-23 00:47:29 +0400
committerDmitry Gutov2013-10-23 00:47:29 +0400
commita6462ef558928da82279e437399cc169fb60b7ef (patch)
treebe2946659dc041a9263357bcc7f07fd9a3f7371b
parent7790a27058bf9ec3dcdf31746853f125d6c84693 (diff)
downloademacs-a6462ef558928da82279e437399cc169fb60b7ef.tar.gz
emacs-a6462ef558928da82279e437399cc169fb60b7ef.zip
* test/indent/ruby.rb: Move two examples to "working" section, add one
more.
-rw-r--r--test/ChangeLog5
-rw-r--r--test/indent/ruby.rb18
2 files changed, 16 insertions, 7 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 609a4e2d007..71104b64364 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
12013-10-22 Dmitry Gutov <dgutov@yandex.ru>
2
3 * indent/ruby.rb: Move two examples to "working" section, add one
4 more.
5
12013-10-21 Dmitry Gutov <dgutov@yandex.ru> 62013-10-21 Dmitry Gutov <dgutov@yandex.ru>
2 7
3 * indent/ruby.rb: New examples for indentation of blocks. Example 8 * indent/ruby.rb: New examples for indentation of blocks. Example
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