diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2013-11-11 20:14:22 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2013-11-11 20:14:22 (GMT) |
commit | c1997b973a25466eb5c51abe194f1000397c3a07 (patch) | |
tree | 069b8a0eaa524730ee2189fb1c1e9ddc2f6547c4 | |
parent | 23f7c36f38ca76f4233c92f661514dd4bba39158 (diff) | |
download | Doxygen-c1997b973a25466eb5c51abe194f1000397c3a07.zip Doxygen-c1997b973a25466eb5c51abe194f1000397c3a07.tar.gz Doxygen-c1997b973a25466eb5c51abe194f1000397c3a07.tar.bz2 |
Removed redundant backslashes in regexp pattern
-rw-r--r-- | src/commentcnv.l | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l index 60d025e..1b48da5 100644 --- a/src/commentcnv.l +++ b/src/commentcnv.l @@ -241,12 +241,12 @@ void replaceComment(int offset); %% -<Scan>[^"'!\/\n\\#\\-\\,]* { /* eat anything that is not " / , or \n */ - copyToOutput(yytext,(int)yyleng); - } -<Scan>[\\,] { /* eat , so we have a nice separator in long initialization lines */ - copyToOutput(yytext,(int)yyleng); - } +<Scan>[^"'!\/\n\\#-,]* { /* eat anything that is not " / , or \n */ + copyToOutput(yytext,(int)yyleng); + } +<Scan>[,] { /* eat , so we have a nice separator in long initialization lines */ + copyToOutput(yytext,(int)yyleng); + } <Scan>"\"\"\""! { /* start of python long comment */ if (g_lang!=SrcLangExt_Python) { @@ -256,7 +256,7 @@ void replaceComment(int offset); { g_pythonDocString = TRUE; g_nestingCount=0; - copyToOutput(yytext,(int)yyleng); + copyToOutput(yytext,(int)yyleng); BEGIN(CComment); } } |