Blame SOURCES/kbd-1.15.5-loadkeys-regression.patch

ce9fa7
diff -up kbd-1.15.5/src/loadkeys.analyze.l.orig kbd-1.15.5/src/loadkeys.analyze.l
ce9fa7
--- kbd-1.15.5/src/loadkeys.analyze.l.orig	2013-01-21 11:22:51.374582275 +0100
ce9fa7
+++ kbd-1.15.5/src/loadkeys.analyze.l	2013-01-21 11:25:29.278331267 +0100
ce9fa7
@@ -307,8 +307,10 @@ To                      to|To|TO
ce9fa7
 				char *s = xstrndup(yytext+1, strlen(yytext)-2);
ce9fa7
 				/* use static pathname to store *s ? */
ce9fa7
 				open_include(s);
ce9fa7
-				yy_pop_state();
ce9fa7
-				state_ptr--;
ce9fa7
+				while (state_ptr > 0) {
ce9fa7
+					yy_pop_state();
ce9fa7
+					state_ptr--;
ce9fa7
+				}
ce9fa7
 			}
ce9fa7
 <INCLSTR>[^"]|\"\"|\"[^"\n]*{Eol}	{
ce9fa7
 				yyerror(_("expected filename between quotes"));
ce9fa7
@@ -323,7 +325,7 @@ To                      to|To|TO
ce9fa7
 			}
ce9fa7
 {Eol}			{
ce9fa7
 				line_nr++;
ce9fa7
-				if (state_ptr > 0) {
ce9fa7
+				while (state_ptr > 0) {
ce9fa7
 					yy_pop_state();
ce9fa7
 					state_ptr--;
ce9fa7
 				}
ce9fa7
@@ -428,8 +430,10 @@ To                      to|To|TO
ce9fa7
 			}
ce9fa7
 <STR>\"			{
ce9fa7
 				*p = '\0';
ce9fa7
-				yy_pop_state();
ce9fa7
-				state_ptr--;
ce9fa7
+				while (state_ptr > 0) {
ce9fa7
+					yy_pop_state();
ce9fa7
+					state_ptr--;
ce9fa7
+				}
ce9fa7
 				return(STRLITERAL);
ce9fa7
 			}
ce9fa7
 .			{