diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-07-15 20:10:02 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-07-15 20:10:02 (GMT) |
commit | b860a5cc743f3297002876b58d4db5e504f4294d (patch) | |
tree | b9a5247ad8e1b7ecda53346aa9e29e3e10167e5b /src/doc.l | |
parent | bcbf69496a8e7e703ecf4fb6e5de264f86ebea84 (diff) | |
download | Doxygen-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.l | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -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 |