diff options
| author | Glenn Morris <rgm@gnu.org> | 2017-10-19 20:05:48 -0400 |
|---|---|---|
| committer | Glenn Morris <rgm@gnu.org> | 2017-10-19 20:05:48 -0400 |
| commit | ddd547fada112c603dae7a204fa0b141429f1927 (patch) | |
| tree | 91192ade05b1c8499a80988039acad0087d74b21 /test/lisp/progmodes/f90-tests.el | |
| parent | 234b1e3864b8b940f72f3727fe7087cf7e90b43d (diff) | |
| download | emacs-ddd547fada112c603dae7a204fa0b141429f1927.tar.gz | |
Improve treatment of Fortran's "class default"
* lisp/progmodes/f90.el (f90-start-block-re, f90-no-block-limit):
Handle "class default". (Bug#28786)
* test/automated/f90.el (f90-test-bug25039): Add "class default".
Diffstat (limited to 'test/lisp/progmodes/f90-tests.el')
| -rw-r--r-- | test/lisp/progmodes/f90-tests.el | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/lisp/progmodes/f90-tests.el b/test/lisp/progmodes/f90-tests.el index 0c03a190ca2..2a9100adff6 100644 --- a/test/lisp/progmodes/f90-tests.el +++ b/test/lisp/progmodes/f90-tests.el @@ -256,21 +256,25 @@ end program prog") (should (= 5 (current-indentation))))) (ert-deftest f90-test-bug25039 () - "Test for https://debbugs.gnu.org/25039 ." + "Test for https://debbugs.gnu.org/25039 and 28786." (with-temp-buffer (f90-mode) (insert "program prog select type (a) -class is (c1) -x = 1 type is (t1) x = 2 +class is (c1) +x = 1 +class default +x=3 end select end program prog") (f90-indent-subprogram) (forward-line -3) - (should (= 2 (current-indentation))) ; type is + (should (= 2 (current-indentation))) ; class default + (forward-line -2) + (should (= 2 (current-indentation))) ; class is (forward-line -2) - (should (= 2 (current-indentation))))) ; class is + (should (= 2 (current-indentation))))) ; type is ;;; f90-tests.el ends here |
