diff options
| author | Dmitry Gutov | 2013-10-06 03:46:28 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2013-10-06 03:46:28 +0300 |
| commit | 5cd9cda9b61159051825a2c5ae2700bf280e2cf2 (patch) | |
| tree | 1599c8a62f4ade9f210af9857dabc7bdcdc126f2 /lisp/progmodes/ruby-mode.el | |
| parent | da9ea6d9803d6a12f93ed7b2effd85e254b390e8 (diff) | |
| download | emacs-5cd9cda9b61159051825a2c5ae2700bf280e2cf2.tar.gz emacs-5cd9cda9b61159051825a2c5ae2700bf280e2cf2.zip | |
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Dedent `ensure'
keyword, too.
* test/indent/ruby.rb: Fix a syntax error, add a few failing examples.
Diffstat (limited to 'lisp/progmodes/ruby-mode.el')
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 662cef82259..c1f79eb8711 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -381,7 +381,7 @@ Also ignores spaces after parenthesis when 'space." | |||
| 381 | (looking-at comment-start-skip))))) | 381 | (looking-at comment-start-skip))))) |
| 382 | ;; `(column . ,(smie-indent-virtual)) | 382 | ;; `(column . ,(smie-indent-virtual)) |
| 383 | (smie-rule-parent))) | 383 | (smie-rule-parent))) |
| 384 | (`(:before . ,(or `"else" `"then" `"elsif" `"rescue")) 0) | 384 | (`(:before . ,(or `"else" `"then" `"elsif" `"rescue" `"ensure")) 0) |
| 385 | (`(:before . ,(or `"when")) | 385 | (`(:before . ,(or `"when")) |
| 386 | (if (not (smie-rule-sibling-p)) 0)) ;; ruby-indent-level | 386 | (if (not (smie-rule-sibling-p)) 0)) ;; ruby-indent-level |
| 387 | ;; Hack attack: Since newlines are separators, don't try to align args that | 387 | ;; Hack attack: Since newlines are separators, don't try to align args that |