summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pre.l15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pre.l b/src/pre.l
index 1e45ca3..82c050c 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -1180,6 +1180,20 @@ QCString removeIdsAndMarkers(const char *s)
p++;
inNum=TRUE;
}
+ else if (c=='\'') // quoted character
+ {
+ result+=c;
+ p++;
+ char pc=c;
+ while ((c=*p) && (c!='\'' || pc=='\\'))
+ {
+ result+=c;
+ pc=c;
+ p++;
+ }
+ result+=c;
+ p++;
+ }
else if (c=='d' && !inNum) // identifier starting with a `d'
{
if (qstrncmp(p,"defined ",8)==0 || qstrncmp(p,"defined(",8)==0)
@@ -2185,6 +2199,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
BEGIN(DefinedExpr1);
}
<Guard>{ID} { g_guardExpr+=yytext; }
+<Guard>"@" { g_guardExpr+="@@"; }
<Guard>. { g_guardExpr+=*yytext; }
<Guard>\n {
unput(*yytext);