From c1997b973a25466eb5c51abe194f1000397c3a07 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 11 Nov 2013 21:14:22 +0100 Subject: Removed redundant backslashes in regexp pattern --- src/commentcnv.l | 14 +++++++------- 1 file 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); %% -[^"'!\/\n\\#\\-\\,]* { /* eat anything that is not " / , or \n */ - copyToOutput(yytext,(int)yyleng); - } -[\\,] { /* eat , so we have a nice separator in long initialization lines */ - copyToOutput(yytext,(int)yyleng); - } +[^"'!\/\n\\#-,]* { /* eat anything that is not " / , or \n */ + copyToOutput(yytext,(int)yyleng); + } +[,] { /* eat , so we have a nice separator in long initialization lines */ + copyToOutput(yytext,(int)yyleng); + } "\"\"\""! { /* 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); } } -- cgit v0.12