aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGlenn Morris2016-11-27 16:05:02 -0800
committerGlenn Morris2016-11-27 16:05:02 -0800
commite46a13446a0dc68e5bc10636d9c40ce5b331efb9 (patch)
tree49562aeda927218ea0cb4d37442cb829d330cd0e /test
parent3674317311131a597dacc8920c5e1cd258ccd6d7 (diff)
downloademacs-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.el18
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
263select type (a)
264class is (c1)
265x = 1
266type is (t1)
267x = 2
268end select
269end 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