This is valid D code:
extern int variable;
but ST highligts extern keyword as error:
extern
ST3 version 3.2.1, Build 3207
The best place to report syntax related issues is