128a129 > static bool insideD = FALSE; //!< processing D code? 440a442 > insideD = fileName.right(2)==".d"; 986a989,990 > > 997,998c1001,1010 < addType( current ) ; < current->name = QCString(yytext).stripWhiteSpace(); --- > if (insideD) > { > lineCount(); > BEGIN(PackageName); > } > else > { > addType( current ) ; > current->name = QCString(yytext).stripWhiteSpace(); > } 1021c1033 < if (insideIDL || insideJava || insideCS) --- > if (insideIDL || insideJava || insideCS || insideD) 1341c1353 < else if ((insideIDL || insideJava) && yyleng==6 && strcmp(yytext,"import")==0) --- > else if ((insideIDL || insideJava || insideD) && yyleng==6 && strcmp(yytext,"import")==0) 1345c1357 < else // insideJava --- > else // insideJava or insideD 1368c1380 < if ((insideJava || insideCS) && strcmp(yytext,"public")==0) --- > if ((insideJava || insideCS || insideD) && strcmp(yytext,"public")==0) 1372c1384 < else if ((insideJava || insideCS) && strcmp(yytext,"protected")==0) --- > else if ((insideJava || insideCS || insideD) && strcmp(yytext,"protected")==0) 1376c1388 < else if ((insideJava || insideCS) && strcmp(yytext,"private")==0) --- > else if ((insideJava || insideCS || insideD) && strcmp(yytext,"private")==0) 1428c1440 < if (insideJava || insideCS) --- > if (insideJava || insideCS || insideD) 2088c2100 < insideJava || insidePHP || insideCS --- > insideJava || insidePHP || insideCS || insideD 3206c3218 < insidePHP || insideCS --- > insidePHP || insideCS || insideD 3311c3323 < if (current->section == Entry::INTERFACE_SEC || insideJava || insidePHP || insideCS) --- > if (current->section == Entry::INTERFACE_SEC || insideJava || insidePHP || insideCS || insideD) 3481c3493 < if ((insideJava || insideCS) && --- > if ((insideJava || insideCS || insideD) && 5312c5324,5325 < ce->fileName.right(4)==".inc" --- > ce->fileName.right(4)==".inc" || > ce->fileName.right(2)==".d"