From 1f6fbaf240351a3559f25bc47286c47b29c1047f Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 21 Mar 2012 21:40:44 +0100 Subject: [PATCH] cfgparse: leave EAT_WHITESPACE and BINDSYM_COND states on EOL (Thanks dothebart) Fixes: #642 --- src/cfgparse.l | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cfgparse.l b/src/cfgparse.l index 1566e24f..ab0c0d54 100644 --- a/src/cfgparse.l +++ b/src/cfgparse.l @@ -130,6 +130,8 @@ EOL (\r?\n) return '['; } [ \t]* { yy_pop_state(); } +{EOL} { yy_pop_state(); } +{EOL} { yy_pop_state(); } \"[^\"]+\" { yy_pop_state(); /* strip quotes */