summaryrefslogtreecommitdiffstats
path: root/src/cfg_file.l
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-30 19:35:57 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-30 19:35:57 +0400
commitf579fed1dee306a5cf58360589d29ae1514d25b4 (patch)
treef5d5e288553d30fc617d06bf9e48ae919092f876 /src/cfg_file.l
parentdd2fbb7a5b7e1c0d844900147486ad7ffd98c1e4 (diff)
downloadrspamd-f579fed1dee306a5cf58360589d29ae1514d25b4.tar.gz
rspamd-f579fed1dee306a5cf58360589d29ae1514d25b4.zip
* Add 3 functions:
- is_recipients_sorted - has_only_html_part - compare_recipients_distance * Update documentation * Fix build
Diffstat (limited to 'src/cfg_file.l')
-rw-r--r--src/cfg_file.l5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cfg_file.l b/src/cfg_file.l
index 3224b4fde..8d347409f 100644
--- a/src/cfg_file.l
+++ b/src/cfg_file.l
@@ -11,7 +11,7 @@
#ifdef WITH_LUA
#include "lua.h"
#else
-#define add_luabuf(x) yyerror ("lua support diabled"); YYERROR
+#define add_luabuf(x) yyerror ("lua support diabled")
#endif
#define MAX_INCLUDE_DEPTH 10
@@ -157,6 +157,9 @@ yes|YES|no|NO|[yY]|[nN] yylval.flag=parse_flag(yytext); return FLAG;
<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'; unescape_quotes(yylval.string); return QUOTEDSTRING;
+<lua>\n /* ignore EOL */;
+<lua>[ \t]+ /* ignore whitespace */;
+<lua>[ \t]*#.* /* ignore comments */;
<lua>^.endlua$ BEGIN(INITIAL);
<lua>.* add_luabuf(yytext);