smooth transition after syntax switching