aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_file.l
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-02 19:18:43 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-02 19:18:43 +0300
commitf972cde13ca98f6ed992a288826467abf04c888a (patch)
tree6569ef0e15b85f4e23aac48c99c5fcc97d679a07 /src/cfg_file.l
parent186f9ab430c1f20efb595da504570fd0b575836a (diff)
downloadrspamd-f972cde13ca98f6ed992a288826467abf04c888a.tar.gz
rspamd-f972cde13ca98f6ed992a288826467abf04c888a.zip
* Add ability to check bits from surbl replies
Diffstat (limited to 'src/cfg_file.l')
-rw-r--r--src/cfg_file.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cfg_file.l b/src/cfg_file.l
index b28bbd263..7216cda7e 100644
--- a/src/cfg_file.l
+++ b/src/cfg_file.l
@@ -19,7 +19,7 @@ extern struct config_file *cfg;
%option yylineno
%%
-^[ \t]*#.* /* ignore comments */;
+[ \t]*#.* /* ignore comments */;
.include BEGIN(incl);
.module BEGIN(module);
composites return COMPOSITES;
@@ -133,13 +133,13 @@ yes|YES|no|NO|[yY]|[nN] yylval.flag=parse_flag(yytext); return FLAG;
<module>\n /* ignore EOL */;
<module>[ \t]+ /* ignore whitespace */;
-<module>^[ \t]*#.* /* ignore comments */;
+<module>[ \t]*#.* /* ignore comments */;
<module>\'[a-zA-Z0-9_-]+\' yylval.string=strdup(yytext + 1); yylval.string[strlen(yylval.string) - 1] = '\0'; return MODULE_OPT;
<module>\{ return OBRACE;
<module>\} BEGIN(INITIAL); return EBRACE;
<module>\; return SEMICOLON;
<module>= return EQSIGN;
-<module>[a-zA-Z0-9_-]+ yylval.string=strdup(yytext); return PARAM;
+<module>[a-zA-Z0-9_%-]+ yylval.string=strdup(yytext); return PARAM;
<module>\$[a-zA-Z_][a-zA-Z0-9_]+ yylval.string=strdup(yytext + 1); return VARIABLE;
<module>\"[^"]+\" yylval.string=strdup(yytext + 1); yylval.string[strlen(yylval.string) - 1] = '\0'; return QUOTEDSTRING;