From 726141746b7f86b02a902bd6b316792e4be0380c Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 13 Feb 1999 21:34:33 +0000 Subject: '#' comments in config files are equivalent to end of line, therefore also to implicit ';'. --- conf/cf-lex.l | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'conf') diff --git a/conf/cf-lex.l b/conf/cf-lex.l index 791d4ad..426f528 100644 --- a/conf/cf-lex.l +++ b/conf/cf-lex.l @@ -120,24 +120,19 @@ WHITE [ \t] {WHITE}+ -\\\n { - conf_lino++; -} +\\\n conf_lino++; +\n { conf_lino++; return ';'; } -\n { - conf_lino++; - return ';'; -} - -# { BEGIN(COMMENT); } +# BEGIN(COMMENT); -\/\* { BEGIN(CCOMM); } +\/\* BEGIN(CCOMM); . cf_error("Unknown character"); \n { conf_lino++; BEGIN(INITIAL); + return ';'; } . -- cgit v1.2.3