From f579fed1dee306a5cf58360589d29ae1514d25b4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 30 Mar 2009 19:35:57 +0400 Subject: * Add 3 functions: - is_recipients_sorted - has_only_html_part - compare_recipients_distance * Update documentation * Fix build --- src/cfg_file.l | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cfg_file.l') 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; \$[a-zA-Z_][a-zA-Z0-9_]+ yylval.string=strdup(yytext + 1); return VARIABLE; \".+[^\\]\" yylval.string=strdup(yytext + 1); yylval.string[strlen(yylval.string) - 1] = '\0'; unescape_quotes(yylval.string); return QUOTEDSTRING; +\n /* ignore EOL */; +[ \t]+ /* ignore whitespace */; +[ \t]*#.* /* ignore comments */; ^.endlua$ BEGIN(INITIAL); .* add_luabuf(yytext); -- cgit v1.2.3