diff options
| author | Dmitry Gutov | 2013-12-19 07:06:24 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2013-12-19 07:06:24 +0200 |
| commit | ce41edb426ccd6acc1c653d8a9a28aded9e9d594 (patch) | |
| tree | 7470708b803ac4c93bfd52d7343eaa79a27d8626 /test/indent/ruby.rb | |
| parent | c7734b728e5f1a44c20bc969801ffd10bbac37b9 (diff) | |
| download | emacs-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.rb | 4 |
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 |
| 273 | tee = if foo | 273 | tee = if foo |
| 274 | bar | 274 | bar |
| 275 | else | ||
| 276 | tee | ||
| 275 | end | 277 | end |
| 276 | 278 | ||
| 277 | a = b { | 279 | a = 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 |
| 332 | end | 336 | end |
| 333 | 337 | ||