summaryrefslogtreecommitdiff
path: root/conf/cf-lex.l
diff options
context:
space:
mode:
authorOndrej Filip <feela@majklik.network.cz>2010-02-10 12:30:14 +0100
committerOndrej Filip <feela@majklik.network.cz>2010-02-10 12:30:14 +0100
commit0efd646278987df023586d85817a848c2bb39a1d (patch)
tree8449b708c020405f3c6d829288b652531e9ae9c7 /conf/cf-lex.l
parentc27b2449d1f57e780974ed13fbd572a48e2a3602 (diff)
Define symbols as text between ''.
Diffstat (limited to 'conf/cf-lex.l')
-rw-r--r--conf/cf-lex.l6
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)