diff options
author | Masahiro Yamada | 2018-12-11 12:01:02 +0100 |
---|---|---|
committer | Masahiro Yamada | 2018-12-21 16:25:53 +0100 |
commit | 171a515d080327b861d5e5fc9bbfa77f10cfddd7 (patch) | |
tree | 1d4ff1b5728d7aa35dde44073a38699d949648ef /scripts/kconfig/zconf.l | |
parent | kconfig: use specific tokens instead of T_ASSIGN for assignments (diff) | |
download | kernel-qcow2-linux-171a515d080327b861d5e5fc9bbfa77f10cfddd7.tar.gz kernel-qcow2-linux-171a515d080327b861d5e5fc9bbfa77f10cfddd7.tar.xz kernel-qcow2-linux-171a515d080327b861d5e5fc9bbfa77f10cfddd7.zip |
kconfig: use T_WORD instead of T_VARIABLE for variables
There is no grammatical ambiguity by using T_WORD for variables.
The parser can distinguish variables from symbols from the context.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig/zconf.l')
-rw-r--r-- | scripts/kconfig/zconf.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l index b1a71f612c11..f8bd84714e00 100644 --- a/scripts/kconfig/zconf.l +++ b/scripts/kconfig/zconf.l @@ -109,13 +109,13 @@ n [A-Za-z0-9_-] } alloc_string(yytext, yyleng); yylval.string = text; - return T_VARIABLE; + return T_WORD; } ({n}|$)+ { /* this token includes at least one '$' */ yylval.string = expand_token(yytext, yyleng); if (strlen(yylval.string)) - return T_VARIABLE; + return T_WORD; free(yylval.string); } "=" { BEGIN(ASSIGN_VAL); return T_EQUAL; } |