mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
f90: handle F2008 module function
* lisp/progmodes/f90.el (f90-font-lock-keywords-1) (f90-looking-at-program-block-start): Handle F2008 "module function" and subroutine. (Bug#38415) * test/lisp/progmodes/f90-tests.el (f90-test-bug38415): New test.
This commit is contained in:
parent
55803cc189
commit
3b0d1a50aa
2 changed files with 32 additions and 5 deletions
|
|
@ -277,4 +277,24 @@ end program prog")
|
|||
(forward-line -2)
|
||||
(should (= 2 (current-indentation))))) ; type is
|
||||
|
||||
(ert-deftest f90-test-bug38415 ()
|
||||
"Test for https://debbugs.gnu.org/38415 ."
|
||||
(with-temp-buffer
|
||||
(f90-mode)
|
||||
(setq-local f90-smart-end 'no-blink)
|
||||
(insert "module function foo(x)
|
||||
real :: x
|
||||
end")
|
||||
(f90-indent-line)
|
||||
(should (equal " function foo"
|
||||
(buffer-substring (point) (line-end-position))))
|
||||
(goto-char (point-max))
|
||||
(insert "\nmodule subroutine bar(x)
|
||||
real :: x
|
||||
end")
|
||||
(f90-indent-line)
|
||||
(should (equal " subroutine bar"
|
||||
(buffer-substring (point) (line-end-position))))))
|
||||
|
||||
|
||||
;;; f90-tests.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue