diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-02 19:18:43 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-02 19:18:43 +0300 |
commit | f972cde13ca98f6ed992a288826467abf04c888a (patch) | |
tree | 6569ef0e15b85f4e23aac48c99c5fcc97d679a07 /src/cfg_file.l | |
parent | 186f9ab430c1f20efb595da504570fd0b575836a (diff) | |
download | rspamd-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.l | 6 |
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; |