* lisp/progmodes/f90.el (f90-type-def-re): Handle "type, bind(c)". (Bug#8691)
authorGlenn Morris <rgm@gnu.org>
Thu, 19 May 2011 06:18:58 +0000 (23:18 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 19 May 2011 06:18:58 +0000 (23:18 -0700)
lisp/ChangeLog
lisp/progmodes/f90.el

index 0548bf9..96d8cf3 100644 (file)
@@ -1,5 +1,8 @@
 2011-05-19  Glenn Morris  <rgm@gnu.org>
 
+       * progmodes/f90.el (f90-type-def-re):
+       Handle "type, bind(c)".  (Bug#8691)
+
        * emacs-lisp/autoload.el (batch-update-autoloads):
        Set autoload-excludes by parsing loadup.el rather than Makefiles.
 
index 53aa954..e9bb43c 100644 (file)
@@ -809,8 +809,10 @@ Can be overridden by the value of `font-lock-maximum-decoration'.")
   ;; type word
   ;; type :: word
   ;; type, stuff :: word
+  ;; type, bind(c) :: word
   ;; NOT "type ("
-  "\\<\\(type\\)\\>\\(?:[^()\n]*::\\)?[ \t]*\\(\\sw+\\)"
+  "\\<\\(type\\)\\>\\(?:\\(?:[^()\n]*\\|\
+.*,[ \t]*bind[ \t]*([ \t]*c[ \t]*)[ \t]*\\)::\\)?[ \t]*\\(\\sw+\\)"
   "Regexp matching the definition of a derived type.")
 
 (defconst f90-typeis-re