]> git.sur5r.net Git - i3/i3/commitdiff
cfgparse: leave EAT_WHITESPACE and BINDSYM_COND states on EOL (Thanks dothebart)
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 21 Mar 2012 20:40:44 +0000 (21:40 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 21 Mar 2012 20:40:44 +0000 (21:40 +0100)
Fixes: #642
src/cfgparse.l

index 1566e24f879fabd4a162500cb28057a8b4461344..ab0c0d54688094163e305b325344143b18a6f310 100644 (file)
@@ -130,6 +130,8 @@ EOL     (\r?\n)
                                   return '[';
                                 }
 <EAT_WHITESPACE>[ \t]*          { yy_pop_state(); }
+<EAT_WHITESPACE>{EOL}           { yy_pop_state(); }
+<BINDSYM_COND>{EOL}             { yy_pop_state(); }
 <WANT_QSTRING>\"[^\"]+\"        {
                                   yy_pop_state();
                                   /* strip quotes */