summaryrefslogtreecommitdiffstats
path: root/conf
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
parentc27b2449d1f57e780974ed13fbd572a48e2a3602 (diff)
downloadbird-0efd646278987df023586d85817a848c2bb39a1d.tar
bird-0efd646278987df023586d85817a848c2bb39a1d.zip
Define symbols as text between ''.
Diffstat (limited to 'conf')
-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 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)