diff options
| author | Glenn Morris | 2016-11-27 16:05:02 -0800 |
|---|---|---|
| committer | Glenn Morris | 2016-11-27 16:05:02 -0800 |
| commit | e46a13446a0dc68e5bc10636d9c40ce5b331efb9 (patch) | |
| tree | 49562aeda927218ea0cb4d37442cb829d330cd0e /test | |
| parent | 3674317311131a597dacc8920c5e1cd258ccd6d7 (diff) | |
| download | emacs-e46a13446a0dc68e5bc10636d9c40ce5b331efb9.tar.gz emacs-e46a13446a0dc68e5bc10636d9c40ce5b331efb9.zip | |
Improve treatment of Fortran's "class is"
* lisp/progmodes/f90.el (f90-start-block-re, f90-no-block-limit):
Handle "class is". (Bug#25039)
* test/automated/f90.el (f90-test-bug25039): New test.
Diffstat (limited to 'test')
| -rw-r--r-- | test/automated/f90.el | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/automated/f90.el b/test/automated/f90.el index fece86ca1d8..29c608847f1 100644 --- a/test/automated/f90.el +++ b/test/automated/f90.el | |||
| @@ -255,4 +255,22 @@ end program prog") | |||
| 255 | (forward-line -2) | 255 | (forward-line -2) |
| 256 | (should (= 5 (current-indentation))))) | 256 | (should (= 5 (current-indentation))))) |
| 257 | 257 | ||
| 258 | (ert-deftest f90-test-bug25039 () | ||
| 259 | "Test for http://debbugs.gnu.org/25039 ." | ||
| 260 | (with-temp-buffer | ||
| 261 | (f90-mode) | ||
| 262 | (insert "program prog | ||
| 263 | select type (a) | ||
| 264 | class is (c1) | ||
| 265 | x = 1 | ||
| 266 | type is (t1) | ||
| 267 | x = 2 | ||
| 268 | end select | ||
| 269 | end program prog") | ||
| 270 | (f90-indent-subprogram) | ||
| 271 | (forward-line -3) | ||
| 272 | (should (= 2 (current-indentation))) ; type is | ||
| 273 | (forward-line -2) | ||
| 274 | (should (= 2 (current-indentation))))) ; class is | ||
| 275 | |||
| 258 | ;;; f90.el ends here | 276 | ;;; f90.el ends here |