diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-11-15 14:41:06 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-11-15 14:41:06 (GMT) |
commit | b20ff12b9d8fa90143628233319beec2c20266d7 (patch) | |
tree | aa3814339507e0a58216fe75837a5f055b2405e2 /src/doctokenizer.l | |
parent | 4fbc34523cbbb9f6532b4113338ef59df193973f (diff) | |
download | Doxygen-b20ff12b9d8fa90143628233319beec2c20266d7.zip Doxygen-b20ff12b9d8fa90143628233319beec2c20266d7.tar.gz Doxygen-b20ff12b9d8fa90143628233319beec2c20266d7.tar.bz2 |
Release-1.3-rc1
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r-- | src/doctokenizer.l | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l index f92a6f3..879ca2c 100644 --- a/src/doctokenizer.l +++ b/src/doctokenizer.l @@ -319,7 +319,7 @@ HTMLKEYW {HTMLKEYL}|{HTMLKEYU} g_token->name=yytext; return TK_URL; } -<St_Para>[a-z_A-Z0-9.-]+"@"[a-z_A-Z0-9.-]+ { +<St_Para>[a-z_A-Z0-9.-]+"@"[a-z_A-Z0-9-]+"."[a-z_A-Z0-9.-]+ { g_token->name=yytext; return TK_URL; } @@ -383,7 +383,10 @@ HTMLKEYW {HTMLKEYL}|{HTMLKEYU} <St_Para,St_Text>{WORD1} | <St_Para,St_Text>{WORD2} { /* function call */ - g_token->name = yytext; + if (yytext[0]=='%') // strip % if present + g_token->name = &yytext[1]; + else + g_token->name = yytext; return TK_WORD; /* the following is dummy code to please the @@ -465,7 +468,10 @@ HTMLKEYW {HTMLKEYL}|{HTMLKEYU} } <St_TitleN>{WORD1} | <St_TitleN>{WORD2} { /* word */ - g_token->name = yytext; + if (yytext[0]=='%') // strip % if present + g_token->name = &yytext[1]; + else + g_token->name = yytext; return TK_WORD; } <St_TitleN>[ \t]+ { |