diff options
| author | Dmitry Gutov | 2016-03-14 00:15:06 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2016-03-14 01:45:01 +0200 |
| commit | 5b705bc97d3928e6550d271c415c54e00e020011 (patch) | |
| tree | dea5346c13e94e024a5fc9e5ed57450b4f36743a /lisp/progmodes/ruby-mode.el | |
| parent | 04f5525fbb961f6006280be340ca0f03df9e80a7 (diff) | |
| download | emacs-5b705bc97d3928e6550d271c415c54e00e020011.tar.gz emacs-5b705bc97d3928e6550d271c415c54e00e020011.zip | |
Indent '.' relative to the first sibling expression
* lisp/progmodes/ruby-mode.el (ruby-smie-rules):
Indent '.' relative to the first sibling expression, instead of the
parent token (bug#17213).
Diffstat (limited to 'lisp/progmodes/ruby-mode.el')
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index b0b837aa20e..9884b7e1ac1 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -661,7 +661,9 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'." | |||
| 661 | (`(:before . ".") | 661 | (`(:before . ".") |
| 662 | (if (smie-rule-sibling-p) | 662 | (if (smie-rule-sibling-p) |
| 663 | (and ruby-align-chained-calls 0) | 663 | (and ruby-align-chained-calls 0) |
| 664 | ruby-indent-level)) | 664 | (smie-backward-sexp ".") |
| 665 | (cons 'column (+ (current-column) | ||
| 666 | ruby-indent-level)))) | ||
| 665 | (`(:before . ,(or `"else" `"then" `"elsif" `"rescue" `"ensure")) | 667 | (`(:before . ,(or `"else" `"then" `"elsif" `"rescue" `"ensure")) |
| 666 | (smie-rule-parent)) | 668 | (smie-rule-parent)) |
| 667 | (`(:before . "when") | 669 | (`(:before . "when") |