aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2015-11-01 18:25:42 -0800
committerGlenn Morris2015-11-01 18:25:42 -0800
commitff80687aee5da42ff151df4e68f8dbcd2f8b2be3 (patch)
tree4b0a7e9053e3c69053a27e7e78094b052cb4e69a
parent3a769e173ebaaff768497dae9c430ac03aedeb94 (diff)
downloademacs-ff80687aee5da42ff151df4e68f8dbcd2f8b2be3.tar.gz
emacs-ff80687aee5da42ff151df4e68f8dbcd2f8b2be3.zip
* lisp/progmodes/f90.el (f90-no-block-limit):
Add associate. (Bug#21794) * test/automated/f90.el (f90-test-bug21794): New test.
-rw-r--r--lisp/progmodes/f90.el2
-rw-r--r--test/automated/f90.el15
2 files changed, 16 insertions, 1 deletions
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el
index 5c938fd1a93..0e333f1f7ed 100644
--- a/lisp/progmodes/f90.el
+++ b/lisp/progmodes/f90.el
@@ -1452,7 +1452,7 @@ if all else fails."
1452 (not (or (looking-at "end") 1452 (not (or (looking-at "end")
1453 (looking-at "\\(do\\|if\\|else\\(if\\|where\\)?\ 1453 (looking-at "\\(do\\|if\\|else\\(if\\|where\\)?\
1454\\|select[ \t]*\\(case\\|type\\)\\|case\\|where\\|forall\\|\ 1454\\|select[ \t]*\\(case\\|type\\)\\|case\\|where\\|forall\\|\
1455block\\|critical\\|enum\\)\\_>") 1455block\\|critical\\|enum\\|associate\\)\\_>")
1456 (looking-at "\\(program\\|\\(?:sub\\)?module\\|\ 1456 (looking-at "\\(program\\|\\(?:sub\\)?module\\|\
1457\\(?:abstract[ \t]*\\)?interface\\|block[ \t]*data\\)\\_>") 1457\\(?:abstract[ \t]*\\)?interface\\|block[ \t]*data\\)\\_>")
1458 (looking-at "\\(contains\\|\\(?:\\sw\\|\\s_\\)+[ \t]*:\\)") 1458 (looking-at "\\(contains\\|\\(?:\\sw\\|\\s_\\)+[ \t]*:\\)")
diff --git a/test/automated/f90.el b/test/automated/f90.el
index c521d289a5d..e429b21c092 100644
--- a/test/automated/f90.el
+++ b/test/automated/f90.el
@@ -240,4 +240,19 @@ end module modname")
240 (forward-line -1) 240 (forward-line -1)
241 (should (= 2 (current-indentation))))) 241 (should (= 2 (current-indentation)))))
242 242
243(ert-deftest f90-test-bug21794 ()
244 "Test for http://debbugs.gnu.org/21794 ."
245 (with-temp-buffer
246 (f90-mode)
247 (insert "program prog
248do i=1,10
249associate (x => xa(i), y => ya(i))
250a(x,y,i) = fun(x,y,i)
251end associate
252end do
253end program prog")
254 (f90-indent-subprogram)
255 (forward-line -2)
256 (should (= 5 (current-indentation)))))
257
243;;; f90.el ends here 258;;; f90.el ends here