cfgparse: leave EAT_WHITESPACE and BINDSYM_COND states on EOL (Thanks dothebart)

Fixes: #642
This commit is contained in:
Michael Stapelberg 2012-03-21 21:40:44 +01:00
parent 7997fd667b
commit 1f6fbaf240
1 changed files with 2 additions and 0 deletions

View 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 */