verilog: Support unexpected end of file

Please review before merging.