summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-03-07 21:00:29 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-03-07 21:00:29 (GMT)
commitf12fe31aed103718f5d4c368473302cc6ac82a47 (patch)
treeecc570be1c038ecdb55dda6d9ffe794945151261 /src/commentcnv.l
parent5edb3c85109d09e5fa43529bf8b584382f7501a5 (diff)
downloadDoxygen-f12fe31aed103718f5d4c368473302cc6ac82a47.zip
Doxygen-f12fe31aed103718f5d4c368473302cc6ac82a47.tar.gz
Doxygen-f12fe31aed103718f5d4c368473302cc6ac82a47.tar.bz2
Release-1.3.6-20040307
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r--src/commentcnv.l7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index 668e2e9..7e7d6a4 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -112,6 +112,8 @@ void replaceComment(int offset);
%}
+CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^' \\\n]{1,4}"'"))
+
%option noyywrap
%x Scan
@@ -123,13 +125,16 @@ void replaceComment(int offset);
%%
-<Scan>[^\"\/\n\\]* { /* eat anything that is not " / or \n */
+<Scan>[^"'\/\n\\]* { /* eat anything that is not " / or \n */
copyToOutput(yytext,yyleng);
}
<Scan>"\"" { /* start of a string */
copyToOutput(yytext,yyleng);
BEGIN(SkipString);
}
+<Scan>{CHARLIT} {
+ copyToOutput(yytext,yyleng);
+ }
<Scan>\n { /* new line */
copyToOutput(yytext,yyleng);
}