summaryrefslogtreecommitdiffstats
path: root/src/commentscan.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2007-09-02 19:15:32 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2007-09-02 19:15:32 (GMT)
commit8e4a092e4d51347f8f6c61d87154ee74edb13d20 (patch)
tree05d18b9500cfc4e613b19d0154b89ed18542a3ae /src/commentscan.l
parent4a93397673029e3cfd4c9e2d0501a109f858b87c (diff)
downloadDoxygen-8e4a092e4d51347f8f6c61d87154ee74edb13d20.zip
Doxygen-8e4a092e4d51347f8f6c61d87154ee74edb13d20.tar.gz
Doxygen-8e4a092e4d51347f8f6c61d87154ee74edb13d20.tar.bz2
Release-1.5.3-20070902
Diffstat (limited to 'src/commentscan.l')
-rw-r--r--src/commentscan.l9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index a91dc97..5db2db5 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -568,7 +568,9 @@ static QCString addFormula()
formLabel.sprintf("\\form#%d",f->getId());
}
int i;
- for (i=0;i<formulaNewLines;i++) formLabel+='\n';
+ for (i=0;i<formulaNewLines;i++) formLabel+="\\_fakenl"; // add fake newlines to
+ // keep the warnings
+ // correctly aligned.
return formLabel;
}
@@ -690,7 +692,9 @@ static inline void setOutput(OutputContext ctx)
current->briefLine = yyLineNr;
}
}
- if (current->brief.isEmpty())
+ if (current->brief.stripWhiteSpace().isEmpty()) // we only want one brief
+ // description even if multiple
+ // are given...
{
pOutputString = &current->brief;
}
@@ -794,6 +798,7 @@ LABELID [a-z_A-Z][a-z_A-Z0-9\-]*
SCOPEID {ID}({ID}*{BN}*"::"{BN}*)*({ID}?)
SCOPENAME "$"?(({ID}?{BN}*"::"{BN}*)*)((~{BN}*)?{ID})
MAILADR [a-z_A-Z0-9.+\-]+"@"[a-z_A-Z0-9\-]+("."[a-z_A-Z0-9\-]+)+[a-z_A-Z0-9\-]+
+RCSTAG "$"{ID}":"[^\n$]+"$"
%option noyywrap