diff options
| author | Dmitry Gutov | 2012-12-26 20:45:19 +0400 |
|---|---|---|
| committer | Dmitry Gutov | 2012-12-26 20:45:19 +0400 |
| commit | db590ef6e30d0b962e226ce5c5a003cc52a17953 (patch) | |
| tree | c781d2e3e1513a1b2cac43be94b08eb7c2a99e35 /test | |
| parent | f5c81c80c109fcaca04b25e08c34848110e2550b (diff) | |
| download | emacs-db590ef6e30d0b962e226ce5c5a003cc52a17953.tar.gz emacs-db590ef6e30d0b962e226ce5c5a003cc52a17953.zip | |
* lisp/progmodes/ruby-mode.el (ruby-indent-beg-re): Only allow "class",
"module" and "def" to have indentation before them. Regression
from 2012-09-07T04:15:56Z!dgutov@yandex.ru (see the new test).
* test/automated/ruby-mode-tests.el
(ruby-indent-after-block-in-continued-expression): New test.
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 5 | ||||
| -rw-r--r-- | test/automated/ruby-mode-tests.el | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 72b44747bac..7344d8dfb95 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-12-26 Dmitry Gutov <dgutov@yandex.ru> | ||
| 2 | |||
| 3 | * automated/ruby-mode-tests.el | ||
| 4 | (ruby-indent-after-block-in-continued-expression): New test. | ||
| 5 | |||
| 1 | 2012-10-14 Eli Zaretskii <eliz@gnu.org> | 6 | 2012-10-14 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * automated/compile-tests.el (compile-tests--test-regexps-data): | 8 | * automated/compile-tests.el (compile-tests--test-regexps-data): |
diff --git a/test/automated/ruby-mode-tests.el b/test/automated/ruby-mode-tests.el index 8da0041e9a4..28c2a2a070d 100644 --- a/test/automated/ruby-mode-tests.el +++ b/test/automated/ruby-mode-tests.el | |||
| @@ -202,6 +202,19 @@ VALUES-PLIST is a list with alternating index and value elements." | |||
| 202 | | end | 202 | | end |
| 203 | |")) | 203 | |")) |
| 204 | 204 | ||
| 205 | (ert-deftest ruby-indent-after-block-in-continued-expression () | ||
| 206 | (ruby-should-indent-buffer | ||
| 207 | "var = | ||
| 208 | | begin | ||
| 209 | | val | ||
| 210 | | end | ||
| 211 | |statement" | ||
| 212 | "var = | ||
| 213 | |begin | ||
| 214 | |val | ||
| 215 | |end | ||
| 216 | |statement")) | ||
| 217 | |||
| 205 | (ert-deftest ruby-move-to-block-stops-at-indentation () | 218 | (ert-deftest ruby-move-to-block-stops-at-indentation () |
| 206 | (with-temp-buffer | 219 | (with-temp-buffer |
| 207 | (insert "def f\nend") | 220 | (insert "def f\nend") |