summaryrefslogtreecommitdiffstats
path: root/src/doc.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-07-15 20:10:02 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-07-15 20:10:02 (GMT)
commita2bf2ebcf009a45c53748f0c7f9182c017c0bcd9 (patch)
treeb9a5247ad8e1b7ecda53346aa9e29e3e10167e5b /src/doc.l
parent457ca5c291eddeb1a4cd667e20cd8d7dfc1d7f2e (diff)
downloadDoxygen-a2bf2ebcf009a45c53748f0c7f9182c017c0bcd9.zip
Doxygen-a2bf2ebcf009a45c53748f0c7f9182c017c0bcd9.tar.gz
Doxygen-a2bf2ebcf009a45c53748f0c7f9182c017c0bcd9.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