Which was totally correct. If Scotland had left the UK it was also leaving the EU.
Scotland isn't a member state of the EU, the UK currently is. And when the UK leaves so will Scotland as Scotland voted to remain part of the UK.
You were lied to by salmond who claimed Scotland would remain in the EU with all the same conditions and opt outs the UK had negotiated during its time of membership. He was lying. Scotland would have become a third state to the EU. None of the EU treaties would then apply to the newly formed Scottish state. That position was made clear by the EU at the time. It was Salmond who lied, nobody else.
As for the raaayciiists stuff. I'm pretty sure plenty of racists voted to leave. 400,000 folk that had voted SNP in the 2015 general election also voted to leave. Plenty of blood and soil racists among them too.
As for me, I voted to leave the EU, we decided back in 2009 that we needed to look at HOW we go about this as the Lisbon Treaty altered everything and rendered the old tory eurosceptics from the Maastricht days, and the likes of UKIP redundant. What they were peddling was no longer valid. And the method of leaving (article 50) had been written into the treaty so it had to be used or total chaos ensues. As it is, it looks like it will take us longer to leave because doing it via EEa has been made toxic by people like slartibartfast puppeteers who don't understand what the single market is.
But it WILL be an orderly leave of sorts and it WILL look a hell of a lot like EEA. Which is daft. But politics can be daft.