summaryrefslogtreecommitdiff
path: root/test/indent
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2013-12-19 07:06:24 +0200
committerDmitry Gutov <dgutov@yandex.ru>2013-12-19 07:06:24 +0200
commitce41edb426ccd6acc1c653d8a9a28aded9e9d594 (patch)
tree7470708b803ac4c93bfd52d7343eaa79a27d8626 /test/indent
parentc7734b728e5f1a44c20bc969801ffd10bbac37b9 (diff)
downloademacs-ce41edb426ccd6acc1c653d8a9a28aded9e9d594.tar.gz
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent middle-of-block
keywords to their parent.
Diffstat (limited to 'test/indent')
-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
# http://stackoverflow.com/questions/17786563/emacs-ruby-mode-if-expressions-indentation
tee = if foo
bar
+ else
+ tee
end
a = b {
@@ -328,6 +330,8 @@ def qux
foo ||= begin
bar
tee
+ rescue
+ oomph
end
end