aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_l.l
diff options
context:
space:
mode:
Diffstat (limited to 'rcfile_l.l')
-rw-r--r--rcfile_l.l26
1 files changed, 9 insertions, 17 deletions
diff --git a/rcfile_l.l b/rcfile_l.l
index a2fe2cbb..4b1d9603 100644
--- a/rcfile_l.l
+++ b/rcfile_l.l
@@ -17,8 +17,6 @@ int prc_lineno = 1;
%o 5000
%a 4000
-WS [ \t]*
-
%%
set { return SET; }
@@ -55,21 +53,15 @@ to { return TO; }
= { return MAP; }
"*" { return WILDCARD; }
-keep { yylval.flag = FLAG_TRUE; return KEEP; }
-flush { yylval.flag = FLAG_TRUE; return FLUSH; }
-fetchall { yylval.flag = FLAG_TRUE; return FETCHALL; }
-rewrite { yylval.flag = FLAG_TRUE; return REWRITE; }
-stripcr { yylval.flag = FLAG_TRUE; return STRIPCR; }
-dns { yylval.flag = FLAG_TRUE; return DNS; }
-received { yylval.flag = FLAG_TRUE; return RECEIVED; }
-
-no{WS}keep { yylval.flag = FLAG_FALSE; return KEEP; }
-no{WS}flush { yylval.flag = FLAG_FALSE; return FLUSH; }
-no{WS}fetchall { yylval.flag = FLAG_FALSE; return FETCHALL; }
-no{WS}rewrite { yylval.flag = FLAG_FALSE; return REWRITE; }
-no{WS}stripcr { yylval.flag = FLAG_FALSE; return REWRITE; }
-no{WS}dns { yylval.flag = FLAG_FALSE; return DNS; }
-no{WS}received { yylval.flag = FLAG_FALSE; return RECEIVED; }
+no/.* { return NO;}
+
+keep { return KEEP; }
+flush { return FLUSH; }
+fetchall { return FETCHALL; }
+rewrite { return REWRITE; }
+stripcr { return STRIPCR; }
+dns { return DNS; }
+received { return RECEIVED; }
limit { return LIMIT; }