From 62361f410c1e49f05766b08ec57acce18de401ae Mon Sep 17 00:00:00 2001 From: Simon Schubert <2@0x2c.org> Date: Fri, 29 Oct 2010 01:50:39 +0200 Subject: [PATCH] aliases: skip empty lines --- aliases_scan.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aliases_scan.l b/aliases_scan.l index 5e6bdd5..809d1e1 100644 --- a/aliases_scan.l +++ b/aliases_scan.l @@ -14,8 +14,8 @@ int yylex(void); %% [^:,#[:space:][:cntrl:]]+ {yylval.ident = strdup(yytext); return T_IDENT;} -[:,\n] return yytext[0]; ^([[:blank:]]*(#.*)?\n)+ ;/* ignore empty lines */ +[:,\n] return yytext[0]; (\n?[[:blank:]]+|#.*)+ ;/* ignore whitespace and continuation */ \\\n ;/* ignore continuation. not allowed in comments */ . return T_ERROR; -- 2.47.3