Sc(OTf)3-catalyzed synthesis of indoles and SnCl4-mediated regioselective hydrochlorination of 5-(arylamino)pent-3-yn-2-ones.