projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kconfig: refactor scanning and parsing "option" properties
[carl9170fw.git]
/
config
/
zconf.l
diff --git
a/config/zconf.l
b/config/zconf.l
index 5b0188a7e9a6f57272d5914e750c112335dfccca..81c1f40cdee6262a04e6f2e7bbd7301f23cede15 100644
(file)
--- a/
config/zconf.l
+++ b/
config/zconf.l
@@
-140,6
+140,9
@@
n [A-Za-z0-9_-]
}
<PARAM>{
}
<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;
"&&" return T_AND;
"||" return T_OR;
"(" return T_OPEN_PAREN;
@@
-261,6
+264,10
@@
n [A-Za-z0-9_-]
<<EOF>> {
BEGIN(INITIAL);
<<EOF>> {
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;
if (current_file) {
zconf_endfile();
return T_EOL;