diff options
Diffstat (limited to 'scripts/kconfig/zconf.l')
-rw-r--r-- | scripts/kconfig/zconf.l | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l index ec902091be97..cfcfabd7a069 100644 --- a/scripts/kconfig/zconf.l +++ b/scripts/kconfig/zconf.l | |||
@@ -90,6 +90,7 @@ n [A-Za-z0-9_] | |||
90 | struct kconf_id *id = kconf_id_lookup(yytext, yyleng); | 90 | struct kconf_id *id = kconf_id_lookup(yytext, yyleng); |
91 | if (id && id->flags & TF_COMMAND) { | 91 | if (id && id->flags & TF_COMMAND) { |
92 | BEGIN(PARAM); | 92 | BEGIN(PARAM); |
93 | zconflval.id = id; | ||
93 | return id->token; | 94 | return id->token; |
94 | } | 95 | } |
95 | alloc_string(yytext, yyleng); | 96 | alloc_string(yytext, yyleng); |
@@ -117,8 +118,10 @@ n [A-Za-z0-9_] | |||
117 | --- /* ignore */ | 118 | --- /* ignore */ |
118 | ({n}|[-/.])+ { | 119 | ({n}|[-/.])+ { |
119 | struct kconf_id *id = kconf_id_lookup(yytext, yyleng); | 120 | struct kconf_id *id = kconf_id_lookup(yytext, yyleng); |
120 | if (id && id->flags & TF_PARAM) | 121 | if (id && id->flags & TF_PARAM) { |
122 | zconflval.id = id; | ||
121 | return id->token; | 123 | return id->token; |
124 | } | ||
122 | alloc_string(yytext, yyleng); | 125 | alloc_string(yytext, yyleng); |
123 | zconflval.string = text; | 126 | zconflval.string = text; |
124 | return T_WORD; | 127 | return T_WORD; |