]> code.delx.au - gnu-emacs/commitdiff
(fortran-end-prog-re1): Fix the regexp.
authorDave Love <fx@gnu.org>
Sun, 1 Nov 1998 16:52:39 +0000 (16:52 +0000)
committerDave Love <fx@gnu.org>
Sun, 1 Nov 1998 16:52:39 +0000 (16:52 +0000)
lisp/progmodes/fortran.el

index cb811123c174234a133e701e42f01f4f6bc4199a..292d92552a9cdce929450a77569577c4ce934330 100644 (file)
@@ -899,7 +899,13 @@ Auto-indent does not happen if a numeric ARG is used."
       (fortran-indent-line))))
 \f
 (defvar fortran-end-prog-re1
-  "end\\b[ \t]*\\(\\(program\\|subroutine\\|function\\)[ \t]*\\)?[^ \t=\(a-z]")
+  ;; `end' followed by optional block type name and then optional
+  ;; symbol, then eol.  In the absence of the block type name, the
+  ;; trailing symbol would presumably be a sequence number in cols 72+.
+  "end\
+\\([ \t]+\\(program\\|subroutine\\|function\\|block[ \t]*data\\)\\>\\)?\
+[ \t]*\\(\\(\\sw\\|\\s_\\)+[ \t]*\\)?\
+$")
 (defvar fortran-end-prog-re
   (concat "^[ \t0-9]*" fortran-end-prog-re1))