diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-04-09 19:41:59 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-04-09 19:41:59 (GMT) |
commit | de785c9b27fab590ae1d05de21be9391bdfb751e (patch) | |
tree | ff1d673745c74977105e7122c3cf840c497ddae3 /src | |
parent | 661c1cbd50214519cff86f051140c04e135419e9 (diff) | |
download | Doxygen-de785c9b27fab590ae1d05de21be9391bdfb751e.zip Doxygen-de785c9b27fab590ae1d05de21be9391bdfb751e.tar.gz Doxygen-de785c9b27fab590ae1d05de21be9391bdfb751e.tar.bz2 |
Combined both rules in one to reduce code duplication
Diffstat (limited to 'src')
-rw-r--r-- | src/doctokenizer.l | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l index 6a5ed3a..de7d162 100644 --- a/src/doctokenizer.l +++ b/src/doctokenizer.l @@ -637,12 +637,7 @@ REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV} } return TK_COMMAND_SEL(); } -<St_Para>{URLPROTOCOL}{URLMASK}/, { // URL, - g_token->name=yytext; - g_token->isEMailAddr=FALSE; - return TK_URL; - } -<St_Para>{URLPROTOCOL}{URLMASK}/\. { // URL. +<St_Para>{URLPROTOCOL}{URLMASK}/[,\.] { // URL, or URL. g_token->name=yytext; g_token->isEMailAddr=FALSE; return TK_URL; |