aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1997-06-10 18:04:01 +0000
committerKarl Heuer1997-06-10 18:04:01 +0000
commit24c868149ecf731b596ff52bdf68b4cf5db5dd38 (patch)
treecff5e52b74e57e6074cbf8d96dbe7077d90ffaae
parent50e4b39edefaa410aaa1a14a3c9b4c6be46a0ddb (diff)
downloademacs-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.el6
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.
1003Name is nil if the statement has no label." 1003Name 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]*\:")