aboutsummaryrefslogtreecommitdiffstats
path: root/test/indent/ruby.rb
diff options
context:
space:
mode:
authorDmitry Gutov2013-12-19 07:06:24 +0200
committerDmitry Gutov2013-12-19 07:06:24 +0200
commitce41edb426ccd6acc1c653d8a9a28aded9e9d594 (patch)
tree7470708b803ac4c93bfd52d7343eaa79a27d8626 /test/indent/ruby.rb
parentc7734b728e5f1a44c20bc969801ffd10bbac37b9 (diff)
downloademacs-ce41edb426ccd6acc1c653d8a9a28aded9e9d594.tar.gz
emacs-ce41edb426ccd6acc1c653d8a9a28aded9e9d594.zip
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent middle-of-block
keywords to their parent.
Diffstat (limited to 'test/indent/ruby.rb')
-rw-r--r--test/indent/ruby.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index 0bf4bc14fbb..1993c29efb3 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -272,6 +272,8 @@ end
272# http://stackoverflow.com/questions/17786563/emacs-ruby-mode-if-expressions-indentation 272# http://stackoverflow.com/questions/17786563/emacs-ruby-mode-if-expressions-indentation
273tee = if foo 273tee = if foo
274 bar 274 bar
275 else
276 tee
275 end 277 end
276 278
277a = b { 279a = b {
@@ -328,6 +330,8 @@ def qux
328 foo ||= begin 330 foo ||= begin
329 bar 331 bar
330 tee 332 tee
333 rescue
334 oomph
331 end 335 end
332end 336end
333 337