diff options
| author | Dave Love | 1998-11-01 16:52:39 +0000 |
|---|---|---|
| committer | Dave Love | 1998-11-01 16:52:39 +0000 |
| commit | 7b84ff901cfb11cf403aec47af117837ae10f8e3 (patch) | |
| tree | 9167c309514e0c03531e98b2f3ba0f607134c194 | |
| parent | d1f04130e01199738ccbc54c5b50f66943f0b756 (diff) | |
| download | emacs-7b84ff901cfb11cf403aec47af117837ae10f8e3.tar.gz emacs-7b84ff901cfb11cf403aec47af117837ae10f8e3.zip | |
(fortran-end-prog-re1): Fix the regexp.
| -rw-r--r-- | lisp/progmodes/fortran.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index cb811123c17..292d92552a9 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el | |||
| @@ -899,7 +899,13 @@ Auto-indent does not happen if a numeric ARG is used." | |||
| 899 | (fortran-indent-line)))) | 899 | (fortran-indent-line)))) |
| 900 | 900 | ||
| 901 | (defvar fortran-end-prog-re1 | 901 | (defvar fortran-end-prog-re1 |
| 902 | "end\\b[ \t]*\\(\\(program\\|subroutine\\|function\\)[ \t]*\\)?[^ \t=\(a-z]") | 902 | ;; `end' followed by optional block type name and then optional |
| 903 | ;; symbol, then eol. In the absence of the block type name, the | ||
| 904 | ;; trailing symbol would presumably be a sequence number in cols 72+. | ||
| 905 | "end\ | ||
| 906 | \\([ \t]+\\(program\\|subroutine\\|function\\|block[ \t]*data\\)\\>\\)?\ | ||
| 907 | [ \t]*\\(\\(\\sw\\|\\s_\\)+[ \t]*\\)?\ | ||
| 908 | $") | ||
| 903 | (defvar fortran-end-prog-re | 909 | (defvar fortran-end-prog-re |
| 904 | (concat "^[ \t0-9]*" fortran-end-prog-re1)) | 910 | (concat "^[ \t0-9]*" fortran-end-prog-re1)) |
| 905 | 911 | ||