kconfig: clean up EOF handling in the lexer