summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-12-24 19:52:54 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-12-24 19:52:54 (GMT)
commit76462e46e09cf3ed528e5d272562adadb05c8e08 (patch)
tree74b9c804cdbc689945d204f1c854e9bfa1ec5c01 /src/doctokenizer.l
parentfb864720e5a808a6e9052b2cc5a1a942cb7665ab (diff)
downloadDoxygen-76462e46e09cf3ed528e5d272562adadb05c8e08.zip
Doxygen-76462e46e09cf3ed528e5d272562adadb05c8e08.tar.gz
Doxygen-76462e46e09cf3ed528e5d272562adadb05c8e08.tar.bz2
Release-1.3-rc2-20021224
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r--src/doctokenizer.l17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 390a666..de8937c 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -162,26 +162,27 @@ static void parseHtmlAttribs(const char *att)
while (i<len && c==' ') { c=attribs.at(++i); }
if (attribs.at(i)=='=') // option has value
{
- i++;
+ c=attribs.at(++i);
// skip spaces
while (i<len && c==' ') { c=attribs.at(++i); }
if (attribs.at(i)=='\'') // option '...'
{
- i++;
+ c=attribs.at(++i);
startAttrib=i;
+
// search for matching quote
while (i<len && c!='\'') { c=attribs.at(++i); }
endAttrib=i;
- i++;
+ c=attribs.at(++i);
}
else if (attribs.at(i)=='"') // option "..."
{
- i++;
+ c=attribs.at(++i);
startAttrib=i;
// search for matching quote
while (i<len && c!='"') { c=attribs.at(++i); }
endAttrib=i;
- i++;
+ c=attribs.at(++i);
}
else // value without any quotes
{
@@ -189,7 +190,7 @@ static void parseHtmlAttribs(const char *att)
// search for separator
while (i<len && c!=' ') { c=attribs.at(++i); }
endAttrib=i;
- i++;
+ c=attribs.at(++i);
}
opt.value = attribs.mid(startAttrib,endAttrib-startAttrib);
}
@@ -378,7 +379,7 @@ LABELID [a-z_A-Z][a-z_A-Z0-9\-]*
g_token->isEMailAddr=FALSE;
return TK_URL;
}
-<St_Para>[a-z_A-Z0-9.-]+"@"[a-z_A-Z0-9-]+("."[a-z_A-Z0-9\-])+[a-z_A-Z0-9\-]+ { // Mail address
+<St_Para>[a-z_A-Z0-9.-]+"@"[a-z_A-Z0-9-]+("."[a-z_A-Z0-9\-]+)+[a-z_A-Z0-9\-]+ { // Mail address
g_token->name=yytext;
g_token->isEMailAddr=TRUE;
return TK_URL;
@@ -598,7 +599,7 @@ LABELID [a-z_A-Z][a-z_A-Z0-9\-]*
return 0;
}
-<St_Ref>{ID} {
+<St_Ref>({ID}[.-])*{ID} {
g_token->name=yytext;
return TK_WORD;
}