projects
/
openwrt
/
staging
/
nbd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: scripts/config - update to kconfig-v6.6.16
[openwrt/staging/nbd.git]
/
scripts
/
config
/
lexer.l
diff --git
a/scripts/config/lexer.l
b/scripts/config/lexer.l
index 0df51ec468a7ab2f260f7e8bdb94f89b4c2d6012..e73b262539eb1a0b899496f6769ac3a74a8c96c7 100644
(file)
--- 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_-]
%%
n [A-Za-z0-9_-]
%%
- int str = 0;
- int ts, i;
+ char open_quote = 0;
#.* /* ignore comment */
[ \t]* /* whitespaces */
#.* /* ignore comment */
[ \t]* /* whitespaces */
@@
-137,7
+136,7
@@
n [A-Za-z0-9_-]
":=" return T_COLON_EQUAL;
"+=" return T_PLUS_EQUAL;
\"|\' {
":=" return T_COLON_EQUAL;
"+=" return T_PLUS_EQUAL;
\"|\' {
-
str
= yytext[0];
+
open_quote
= yytext[0];
new_string();
BEGIN(STRING);
}
new_string();
BEGIN(STRING);
}
@@
-174,7
+173,7
@@
n [A-Za-z0-9_-]
append_string(yytext + 1, yyleng - 1);
}
\'|\" {
append_string(yytext + 1, yyleng - 1);
}
\'|\" {
- if (
str
== yytext[0]) {
+ if (
open_quote
== yytext[0]) {
BEGIN(INITIAL);
yylval.string = text;
return T_WORD_QUOTE;
BEGIN(INITIAL);
yylval.string = text;
return T_WORD_QUOTE;
@@
-199,6
+198,8
@@
n [A-Za-z0-9_-]
<HELP>{
[ \t]+ {
<HELP>{
[ \t]+ {
+ int ts, i;
+
ts = 0;
for (i = 0; i < yyleng; i++) {
if (yytext[i] == '\t')
ts = 0;
for (i = 0; i < yyleng; i++) {
if (yytext[i] == '\t')