Implement semicolon insertion