lexer: Implement automatic semicolon insertion.