diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-11 12:01:00 +0100 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-21 16:25:52 +0100 |
commit | ce2164ab58316e27180034112f97608a764f5b37 (patch) | |
tree | 80f0ee899851907326026719a912e3a3d664b7dd /scripts/kconfig/zconf.l | |
parent | kconfig: use distinct tokens for type and default properties (diff) | |
download | linux-ce2164ab58316e27180034112f97608a764f5b37.tar.xz linux-ce2164ab58316e27180034112f97608a764f5b37.zip |
kconfig: refactor scanning and parsing "option" properties
For the keywords "modules", "defconfig_list", and "allnoconfig_y",
the lexer should pass specific tokens instead of generic T_WORD.
This simplifies both the lexer and the parser.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig/zconf.l')
-rw-r--r-- | scripts/kconfig/zconf.l | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l index 8e856f9e6da9..30380790bab4 100644 --- a/scripts/kconfig/zconf.l +++ b/scripts/kconfig/zconf.l @@ -140,6 +140,9 @@ n [A-Za-z0-9_-] } <PARAM>{ + "modules" return T_MODULES; + "defconfig_list" return T_DEFCONFIG_LIST; + "allnoconfig_y" return T_ALLNOCONFIG_Y; "&&" return T_AND; "||" return T_OR; "(" return T_OPEN_PAREN; |