diff --git a/src/fortranscanner.l b/src/fortranscanner.l
index 278367c..3cc0e13 100644
--- a/src/fortranscanner.l
+++ b/src/fortranscanner.l
@@ -1031,7 +1036,7 @@ private                                 {
 
  /*---- documentation comments --------------------------------------------------------------------*/
 
-<Variable,SubprogBody,ModuleBody,TypedefBody>"!<"  { /* backward docu comment */
+<Variable,SubprogBody,ModuleBody,TypedefBody,TypedefBodyContains>"!<"  { /* backward docu comment */
                                           if (v_type != V_IGNORE) {
 					   current->docLine  = yyLineNr;
  					   docBlockJavaStyle = FALSE; 
