Mercurial > emacs
comparison lisp/progmodes/fortran.el @ 23607:6b2444d06348
(fortran-end-prog-re1): Fix the regexp.
author | Dave Love <fx@gnu.org> |
---|---|
date | Sun, 01 Nov 1998 16:52:39 +0000 |
parents | ac51d834b81e |
children | 17ebfb12712f |
comparison
equal
deleted
inserted
replaced
23606:57e437a51073 | 23607:6b2444d06348 |
---|---|
897 (skip-chars-backward " \t") | 897 (skip-chars-backward " \t") |
898 (insert last-command-char) | 898 (insert last-command-char) |
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 |
906 (defun beginning-of-fortran-subprogram () | 912 (defun beginning-of-fortran-subprogram () |
907 "Moves point to the beginning of the current Fortran subprogram." | 913 "Moves point to the beginning of the current Fortran subprogram." |