• Masahiro Yamada's avatar
    kconfig: begin PARAM state only when seeing a command keyword · 9de07153
    Masahiro Yamada authored
    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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    9de07153
Name
Last commit
Last update
Documentation Loading commit data...
LICENSES Loading commit data...
arch Loading commit data...
block Loading commit data...
certs Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt Loading commit data...
.clang-format Loading commit data...
.cocciconfig Loading commit data...
.get_maintainer.ignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...