Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bcc547e authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

kconfig: clean up EOF handling in the lexer



A new file should always start in the INITIAL state.

When the lexer bumps into EOF, the lexer must get back to the INITIAL
state anyway. Remove the redundant <<EOF>> pattern in the PARAM state.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent cc66bca7
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -178,9 +178,6 @@ n [A-Za-z0-9_-]
	\\\n	;
	[[:blank:]]+
	.	warn_ignored_character(*yytext);
	<<EOF>> {
		BEGIN(INITIAL);
	}
}

<STRING>{
@@ -262,6 +259,8 @@ n [A-Za-z0-9_-]
}

<<EOF>>	{
	BEGIN(INITIAL);

	if (current_file) {
		zconf_endfile();
		return T_EOL;