lexer: Add test cases for the automatic semicolon insertion.