summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-01-08 09:11:54 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-01-08 09:11:54 (GMT)
commitdd3a8c66d25b91684b31fbf286e37edd72573dda (patch)
treeae1e2b34824a5601fbaad9f98fef08442af066a0 /src/doctokenizer.l
parent49c7a6b244938a3e109f3714fa9a047f6bce26bb (diff)
downloadDoxygen-dd3a8c66d25b91684b31fbf286e37edd72573dda.zip
Doxygen-dd3a8c66d25b91684b31fbf286e37edd72573dda.tar.gz
Doxygen-dd3a8c66d25b91684b31fbf286e37edd72573dda.tar.bz2
Slightly reworked the code
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r--src/doctokenizer.l6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 36da1d7..63a49ca 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -755,8 +755,7 @@ RCSID "$"("Author"|"Date"|"Header"|"Id"|"Locker"|"Log"|"Name"|"RCSfile"|"Revisio
<St_Para,St_Text>[\-+0-9] |
<St_Para,St_Text>{WORD1} |
<St_Para,St_Text>{WORD2} { /* function call */
- QCString tmp = yytext;
- if (tmp.contains("\\ilinebr")>0) REJECT;
+ if (QCString(yytext).find("\\ilinebr")!=-1) REJECT; // see issue #8311
lineCount(yytext,yyleng);
if (yytext[0]=='%') // strip % if present
g_token->name = &yytext[1];
@@ -1044,8 +1043,7 @@ RCSID "$"("Author"|"Date"|"Header"|"Id"|"Locker"|"Log"|"Name"|"RCSfile"|"Revisio
<St_TitleN>[\-+0-9] |
<St_TitleN>{WORD1} |
<St_TitleN>{WORD2} { /* word */
- QCString tmp = yytext;
- if (tmp.contains("\\ilinebr")>0) REJECT;
+ if (QCString(yytext).find("\\ilinebr")!=-1) REJECT; // see issue #8311
lineCount(yytext,yyleng);
if (yytext[0]=='%') // strip % if present
g_token->name = &yytext[1];