Masahiro Yamada 9de071536c kconfig: begin PARAM state only when seeing a command keyword
Currently, any statement line starts with a keyword with TF_COMMAND
flag.  So, the following three lines are dead code.

        alloc_string(yytext, yyleng);
        zconflval.string = text;
        return T_WORD;

If a T_WORD token is returned in this context, it will cause syntax
error in the parser anyway.

The next commit will support the assignment statement where a line
starts with an arbitrary identifier.  So, I want the lexer to switch
to the PARAM state only when it sees a command keyword.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2018-05-29 03:31:19 +09:00
..
2018-03-28 14:30:41 +10:00
2017-03-28 16:16:52 +02:00
2018-05-03 01:17:44 +09:00
2017-11-17 17:45:29 -08:00
2018-04-03 15:51:22 -07:00
2018-03-26 02:01:18 +09:00
2018-02-02 00:21:47 +09:00
2018-04-04 16:01:43 -07:00
2018-05-29 03:28:58 +09:00
2017-11-17 17:45:29 -08:00
2017-11-14 18:25:40 -08:00
2017-11-17 17:45:29 -08:00
2018-02-06 18:32:47 -08:00
2017-11-17 17:45:29 -08:00
2017-11-17 17:45:29 -08:00
2018-04-04 16:43:47 -07:00
2014-08-20 16:03:45 +02:00