diff options
Diffstat (limited to 'src/commentcnv.l')
-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); } } |