diff options
Diffstat (limited to 'conf/cf-lex.l')
-rw-r--r-- | conf/cf-lex.l | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/conf/cf-lex.l b/conf/cf-lex.l index c68a42e4..04b0c604 100644 --- a/conf/cf-lex.l +++ b/conf/cf-lex.l @@ -131,7 +131,11 @@ WHITE [ \t] return NUM; } -{ALPHA}{ALNUM}* { +({ALPHA}{ALNUM}*|[']({ALNUM}|[-])*[']) { + if(*yytext == '\'') { + yytext[yyleng-1] = 0; + yytext++; + } unsigned int h = cf_hash(yytext); struct keyword *k = kw_hash[h & (KW_HASH_SIZE-1)]; while (k) |