summaryrefslogtreecommitdiffstats
path: root/src/doc.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-07-15 20:10:02 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-07-15 20:10:02 (GMT)
commitb860a5cc743f3297002876b58d4db5e504f4294d (patch)
treeb9a5247ad8e1b7ecda53346aa9e29e3e10167e5b /src/doc.l
parentbcbf69496a8e7e703ecf4fb6e5de264f86ebea84 (diff)
downloadDoxygen-b860a5cc743f3297002876b58d4db5e504f4294d.zip
Doxygen-b860a5cc743f3297002876b58d4db5e504f4294d.tar.gz
Doxygen-b860a5cc743f3297002876b58d4db5e504f4294d.tar.bz2
Release-1.2.17
Diffstat (limited to 'src/doc.l')
-rw-r--r--src/doc.l22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/doc.l b/src/doc.l
index ca6648c..6104962 100644
--- a/src/doc.l
+++ b/src/doc.l
@@ -2254,17 +2254,21 @@ LINKMASK [a-z_A-Z0-9:#.,~&*/\[\]<>()\-\+]+({B}*("const"|"volatile"))?
<DocScan>{CMD}"skipline"{BN}+ { BEGIN( DocSkiplineKey ); firstLine=TRUE; }
<DocScan>{CMD}"line"{BN}+ { BEGIN( DocLineKey ); firstLine=TRUE; }
<DocScan>{CMD}"until"{BN}+ { BEGIN( DocUntilKey ); firstLine=TRUE; }
-<DocSkipKey>[^ \t\r\n]+ {
+<DocSkipKey>[^\r\n]+ {
if (includeFileLength>0)
- skipUntil(yytext);
+ {
+ QCString pattern=yytext;
+ skipUntil(pattern.stripWhiteSpace());
+ }
BEGIN( DocScan );
}
-<DocLineKey>[^ \t\r\n]+ {
+<DocLineKey>[^\r\n]+ {
if (includeFileLength>0)
{
+ QCString pattern=yytext;
if (firstLine) outDoc->startCodeFragment();
firstLine=FALSE;
- showLine(*outDoc,yytext);
+ showLine(*outDoc,pattern.stripWhiteSpace());
BEGIN( DocKeyEnd );
}
else
@@ -2272,12 +2276,13 @@ LINKMASK [a-z_A-Z0-9:#.,~&*/\[\]<>()\-\+]+({B}*("const"|"volatile"))?
BEGIN( DocScan );
}
}
-<DocSkiplineKey>[^ \t\r\n]+ {
+<DocSkiplineKey>[^\r\n]+ {
if (includeFileLength>0)
{
+ QCString pattern=yytext;
if (firstLine) outDoc->startCodeFragment();
firstLine=FALSE;
- skipLine(*outDoc,yytext);
+ skipLine(*outDoc,pattern.stripWhiteSpace());
BEGIN( DocKeyEnd );
}
else
@@ -2285,12 +2290,13 @@ LINKMASK [a-z_A-Z0-9:#.,~&*/\[\]<>()\-\+]+({B}*("const"|"volatile"))?
BEGIN( DocScan );
}
}
-<DocUntilKey>[^ \t\r\n]+ {
+<DocUntilKey>[^\r\n]+ {
if (includeFileLength>0)
{
+ QCString pattern=yytext;
if (firstLine) outDoc->startCodeFragment();
firstLine=FALSE;
- showUntil(*outDoc,yytext);
+ showUntil(*outDoc,pattern.stripWhiteSpace());
BEGIN( DocKeyEnd );
}
else