X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=config%2Fzconf.l;h=81c1f40cdee6262a04e6f2e7bbd7301f23cede15;hb=7df515c55fa329c32734a5f93d251170a33f07f5;hp=bbbef0c9072c7ff185a6146c83a60b3bff5e489f;hpb=6f9083050fd2aa04490cdd5fb6e52120fb3e74f8;p=carl9170fw.git diff --git a/config/zconf.l b/config/zconf.l index bbbef0c..81c1f40 100644 --- a/config/zconf.l +++ b/config/zconf.l @@ -140,6 +140,9 @@ n [A-Za-z0-9_-] } { + "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; @@ -178,9 +181,6 @@ n [A-Za-z0-9_-] \\\n ; [[:blank:]]+ . warn_ignored_character(*yytext); - <> { - BEGIN(INITIAL); - } } { @@ -262,6 +262,12 @@ n [A-Za-z0-9_-] } <> { + BEGIN(INITIAL); + + if (prev_token != T_EOL && prev_token != T_HELPTEXT) + fprintf(stderr, "%s:%d:warning: no new line at end of file\n", + current_file->name, yylineno); + if (current_file) { zconf_endfile(); return T_EOL;