build: scripts/config - update to kconfig-v6.6.16
[openwrt/staging/nbd.git] / scripts / config / lexer.l
index 0df51ec468a7ab2f260f7e8bdb94f89b4c2d6012..e73b262539eb1a0b899496f6769ac3a74a8c96c7 100644 (file)
@@ -86,8 +86,7 @@ static void warn_ignored_character(char chr)
 n      [A-Za-z0-9_-]
 
 %%
-       int str = 0;
-       int ts, i;
+       char open_quote = 0;
 
 #.*                    /* ignore comment */
 [ \t]*                 /* whitespaces */
@@ -137,7 +136,7 @@ n   [A-Za-z0-9_-]
 ":="                   return T_COLON_EQUAL;
 "+="                   return T_PLUS_EQUAL;
 \"|\'                  {
-                               str = yytext[0];
+                               open_quote = yytext[0];
                                new_string();
                                BEGIN(STRING);
                        }
@@ -174,7 +173,7 @@ n   [A-Za-z0-9_-]
                append_string(yytext + 1, yyleng - 1);
        }
        \'|\"   {
-               if (str == yytext[0]) {
+               if (open_quote == yytext[0]) {
                        BEGIN(INITIAL);
                        yylval.string = text;
                        return T_WORD_QUOTE;
@@ -199,6 +198,8 @@ n   [A-Za-z0-9_-]
 
 <HELP>{
        [ \t]+  {
+               int ts, i;
+
                ts = 0;
                for (i = 0; i < yyleng; i++) {
                        if (yytext[i] == '\t')