1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-14 14:55:41 +00:00

Don't include trailing whitespace in ID tokens before comments. ie:

options FOO=10		# comment
would give FOO the value of "10		" and that caused unwanted
touches on the opt_*.h files.

I hope I've got this right..
This commit is contained in:
Peter Wemm 1999-07-01 16:20:16 +00:00
parent 02e7144a4e
commit 2da5c22ea3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48402

View File

@ -78,6 +78,7 @@ struct kt {
{ "minor", MINOR },
{ "net", NET }, /* XXX going away */
{ "nexus", NEXUS },
{ "option", OPTIONS },
{ "options", OPTIONS },
{ "port", PORT },
{ "priority", PRIORITY },
@ -149,7 +150,7 @@ ID [A-Za-z_][-A-Za-z_0-9]*
tprintf("id(%s) ", yytext+1);
return ID;
}
<TOEOL>[^#\n]* {
<TOEOL>[^# \t\n]* {
BEGIN 0;
yylval.str = strdup(yytext);
tprintf("id(%s) ", yytext);