aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDmitry Gutov2013-11-02 09:18:11 +0400
committerDmitry Gutov2013-11-02 09:18:11 +0400
commit3d42b9689949b927cd5e8e5d42ad96149abf5c45 (patch)
tree89c0ba7ef27a2ce0e02b6b7cb7c830d22a7cf3b6 /test
parenta90e5a330c68cd42347083c21a6d495bbff7b547 (diff)
downloademacs-3d42b9689949b927cd5e8e5d42ad96149abf5c45.tar.gz
emacs-3d42b9689949b927cd5e8e5d42ad96149abf5c45.zip
* lisp/progmodes/ruby-mode.el (ruby-smie--rule-parent-skip-assign): New
function, replacement for `smie-rule-parent' for when we want to skip over our direct parent if it's an assignment token.. (ruby-smie-rules): Use it.
Diffstat (limited to 'test')
-rw-r--r--test/indent/ruby.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index 633b2991d5e..65c33bb3ecf 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -225,6 +225,14 @@ tee = if foo
225 bar 225 bar
226 end 226 end
227 227
228a = b {
229 c
230}
231
232aa = bb do
233 cc
234end
235
228# Examples below still fail with `ruby-use-smie' on: 236# Examples below still fail with `ruby-use-smie' on:
229 237
230foo = [1, 2, 3].map do |i| 238foo = [1, 2, 3].map do |i|