From 0efd646278987df023586d85817a848c2bb39a1d Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Wed, 10 Feb 2010 12:30:14 +0100 Subject: Define symbols as text between ''. --- conf/cf-lex.l | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'conf') diff --git a/conf/cf-lex.l b/conf/cf-lex.l index c68a42e..04b0c60 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) -- cgit v1.2.3