diff options
| author | Dmitry Gutov | 2016-03-06 23:18:06 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2016-03-07 05:07:33 +0200 |
| commit | 066f3bc3f3d024b2e10ee11e09ae6aaa1003bbda (patch) | |
| tree | f4f3920ef6fedabd006a5c71f819d68c554c3e2d /test/indent/ruby.rb | |
| parent | 6f7a57c7081ad3f8b5942a827843f8ad14e20e93 (diff) | |
| download | emacs-066f3bc3f3d024b2e10ee11e09ae6aaa1003bbda.tar.gz emacs-066f3bc3f3d024b2e10ee11e09ae6aaa1003bbda.zip | |
Recognize iuwu-mod after an escaped newline
* lisp/progmodes/ruby-mode.el (ruby-smie--bosp): Check if the
newline is escaped.
(ruby-smie-rules): Indent iuwu-mod after an escaped newline
correctly.
Diffstat (limited to 'test/indent/ruby.rb')
| -rw-r--r-- | test/indent/ruby.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb index dfd1c75a679..49478602e41 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb | |||
| @@ -223,6 +223,9 @@ z = { | |||
| 223 | foo if | 223 | foo if |
| 224 | bar | 224 | bar |
| 225 | 225 | ||
| 226 | fail "stuff" \ | ||
| 227 | unless all_fine? | ||
| 228 | |||
| 226 | if foo? | 229 | if foo? |
| 227 | bar | 230 | bar |
| 228 | end | 231 | end |