GNU bug report logs -
#8691
23.2; In fortran 90 mode, f90-indent-subprogram gets confused by bind(c) type definitions
Previous Next
Reported by: James Tappin <jtappin <at> gmail.com>
Date: Wed, 18 May 2011 16:12:01 UTC
Severity: normal
Found in version 23.2
Fixed in version 24.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hello, I think this patch fixes it. You can test it with:
(setq f90-type-def-re "...value-from-patch...")
*** lisp/progmodes/f90.el 2011-02-04 03:21:11 +0000
--- lisp/progmodes/f90.el 2011-05-18 19:09:26 +0000
***************
*** 809,816 ****
;; type word
;; type :: word
;; type, stuff :: word
;; NOT "type ("
! "\\<\\(type\\)\\>\\(?:[^()\n]*::\\)?[ \t]*\\(\\sw+\\)"
"Regexp matching the definition of a derived type.")
(defconst f90-typeis-re
--- 809,818 ----
;; type word
;; type :: word
;; type, stuff :: word
+ ;; type, bind(c) :: word
;; NOT "type ("
! "\\<\\(type\\)\\>\\(?:\\(?:[^()\n]*\\|\
! .*,[ \t]*bind[ \t]*([ \t]*c[ \t]*)[ \t]*\\)::\\)?[ \t]*\\(\\sw+\\)"
"Regexp matching the definition of a derived type.")
(defconst f90-typeis-re
This bug report was last modified 14 years and 84 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.