diff options
| author | Karl Heuer | 1997-06-10 18:04:01 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-06-10 18:04:01 +0000 |
| commit | 24c868149ecf731b596ff52bdf68b4cf5db5dd38 (patch) | |
| tree | cff5e52b74e57e6074cbf8d96dbe7077d90ffaae | |
| parent | 50e4b39edefaa410aaa1a14a3c9b4c6be46a0ddb (diff) | |
| download | emacs-24c868149ecf731b596ff52bdf68b4cf5db5dd38.tar.gz emacs-24c868149ecf731b596ff52bdf68b4cf5db5dd38.zip | |
(f90-looking-at-where-or-forall): Recognize where/forall
only if it's a block, not a one-line statement.
| -rw-r--r-- | lisp/progmodes/f90.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el index 0fd525b07bc..1361d617bc9 100644 --- a/lisp/progmodes/f90.el +++ b/lisp/progmodes/f90.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Torbj\"orn Einarsson <T.Einarsson@clab.ericsson.se> | 5 | ;; Author: Torbj\"orn Einarsson <T.Einarsson@clab.ericsson.se> |
| 6 | ;; Last Change: Oct. 14, 1996 | 6 | ;; Last Change: May 29 1997 |
| 7 | ;; Keywords: fortran, f90, languages | 7 | ;; Keywords: fortran, f90, languages |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| @@ -999,9 +999,9 @@ Name is nil if the statement has no label." | |||
| 999 | (list struct label))))))) | 999 | (list struct label))))))) |
| 1000 | 1000 | ||
| 1001 | (defsubst f90-looking-at-where-or-forall () | 1001 | (defsubst f90-looking-at-where-or-forall () |
| 1002 | "Return (kind name) if a where or forall statement starts after point. | 1002 | "Return (kind name) if a where or forall block starts after point. |
| 1003 | Name is nil if the statement has no label." | 1003 | Name is nil if the statement has no label." |
| 1004 | (if (looking-at "\\(\\(\\sw+\\)[ \t]*\:\\)?[ \t]*\\(where\\|forall\\)[ \t]*(") | 1004 | (if (looking-at "\\(\\(\\sw+\\)[ \t]*\:\\)?[ \t]*\\(where\\|forall\\)[ \t]*(.*)[ \t]*\\(!\\|$\\)") |
| 1005 | (let (label | 1005 | (let (label |
| 1006 | (struct (f90-match-piece 3))) | 1006 | (struct (f90-match-piece 3))) |
| 1007 | (if (looking-at "\\(\\sw+\\)[ \t]*\:") | 1007 | (if (looking-at "\\(\\sw+\\)[ \t]*\:") |