summaryrefslogtreecommitdiffstats
path: root/src/vhdljjparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdljjparser.cpp')
-rw-r--r--src/vhdljjparser.cpp22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/vhdljjparser.cpp b/src/vhdljjparser.cpp
index acef592..fdba5e2 100644
--- a/src/vhdljjparser.cpp
+++ b/src/vhdljjparser.cpp
@@ -164,6 +164,9 @@ void VHDLLanguageScanner::parseInput(const char *fileName,const char *fileBuf,En
g_thisParser=this;
bool inLine=false;
inputString=fileBuf;
+
+ // fprintf(stderr,"\n ============= %s\n ==========\n",fileBuf);
+
if (strlen(fileName)==0)
{
inLine=true;
@@ -291,6 +294,8 @@ bool checkInlineCode(QCString & doc)
void VhdlParser::handleFlowComment(const char* doc)
{
+ lineCount(doc);
+
if (VhdlDocGen::getFlowMember())
{
QCString qcs(doc);
@@ -305,7 +310,9 @@ void VhdlParser::handleCommentBlock(const char* doc1,bool brief)
{
int position=0;
static bool isIn;
- QCString doc(doc1);
+ QCString doc;
+ doc.append(doc1);
+ // fprintf(stderr,"\n %s",doc.data());
if (doc.isEmpty()) return;
if (checkMultiComment(doc,yyLineNr))
@@ -334,9 +341,6 @@ void VhdlParser::handleCommentBlock(const char* doc1,bool brief)
bool needsEntry=FALSE;
Protection protection=Public;
- int lineNr;
- if (iDocLine==-1)
- lineNr=yyLineNr;
if (oldEntry==current)
{
@@ -359,6 +363,14 @@ void VhdlParser::handleCommentBlock(const char* doc1,bool brief)
current->docLine = yyLineNr;
}
// printf("parseCommentBlock file<%s>\n [%s]\n at line [%d] \n ",yyFileName.data(),doc.data(),iDocLine);
+
+ int j=doc.find("[plant]");
+ if (j>=0)
+ {
+ doc=doc.remove(j,7);
+ current->stat=true;
+ }
+
while (parseCommentBlock(
g_thisParser,
current,
@@ -690,7 +702,7 @@ void VhdlParser::mapLibPackage( Entry* root)
bool VhdlParser::addLibUseClause(const QCString &type)
{
- static bool showIEEESTD=Config_getBool("FORCE_LOCAL_INCLUDES");
+ static bool showIEEESTD=Config_getBool(FORCE_LOCAL_INCLUDES);
if (showIEEESTD) // all standard packages and libraries will not be shown
{