summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/zconf.l
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-11 12:01:05 +0100
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-21 16:25:54 +0100
commitf5451582c4e22ce8912aae4950810f3598c9b516 (patch)
treefce36383fca69f12a703ec061fdadc6cb691e78f /scripts/kconfig/zconf.l
parenttreewide: surround Kconfig file paths with double quotes (diff)
downloadlinux-f5451582c4e22ce8912aae4950810f3598c9b516.tar.xz
linux-f5451582c4e22ce8912aae4950810f3598c9b516.zip
kconfig: stop supporting '.' and '/' in unquoted words
In my understanding, special characters such as '.' and '/' are supported in unquoted words to use bare file paths in the "source" statement. With the previous commit surrounding all file paths with double quotes, we can drop this. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig/zconf.l')
-rw-r--r--scripts/kconfig/zconf.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l
index f8bd84714e00..90d2f37159dc 100644
--- a/scripts/kconfig/zconf.l
+++ b/scripts/kconfig/zconf.l
@@ -160,7 +160,7 @@ n [A-Za-z0-9_-]
BEGIN(STRING);
}
\n BEGIN(INITIAL); return T_EOL;
- ({n}|[/.])+ {
+ {n}+ {
const struct kconf_id *id = kconf_id_lookup(yytext, yyleng);
if (id && id->flags & TF_PARAM) {
yylval.id = id;
@@ -170,7 +170,7 @@ n [A-Za-z0-9_-]
yylval.string = text;
return T_WORD;
}
- ({n}|[/.$])+ {
+ ({n}|$)+ {
/* this token includes at least one '$' */
yylval.string = expand_token(yytext, yyleng);
if (strlen(yylval.string))