aboutsummaryrefslogtreecommitdiff
path: root/scripts/config/lexer.l
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2024-02-16 14:32:07 -0300
committerRobert Marko <robimarko@gmail.com>2024-03-01 19:02:00 +0100
commit65a3eb28d5ec276c960e992fc99d0d042f5c863f (patch)
tree7cd34aea8d6358dcb0d69e7ef15ecb75bdc60e68 /scripts/config/lexer.l
parentff6df9ac9f677d8dd905e58b2d7c01417528e32d (diff)
build: scripts/config - update to kconfig-v6.6.16
The main goal here is to keep this close to upstream. Changes include: - allow symbols implied by y to become m - make 'imply' obey the direct dependency - allow only 'config', 'comment', and 'if' inside 'choice' - qconf: make search fully work again on split mode - qconf: navigate menus on hyperlinks - remove '---help---' support - qconf: allow to edit "int", "hex", "string" menus in-place - qconf: drop Qt4 support - nconf: fix core dump when searching in empty menu - nconf: stop endless search loops - Create links to main menu items in search - fix segmentation fault in menuconfig search - nconf: Add search jump feature - port qconf to work with Qt6 in addition to Qt5 - fix possible buffer overflow - fix memory leak from range properties Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Diffstat (limited to 'scripts/config/lexer.l')
-rw-r--r--scripts/config/lexer.l9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/config/lexer.l b/scripts/config/lexer.l
index 0df51ec468..e73b262539 100644
--- a/scripts/config/lexer.l
+++ b/scripts/config/lexer.l
@@ -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')