The following is valid at the beginning of D files:
#!/usr/bin/rdmd
but this is missing from the lexcical specification, thus Any IDE plugin that follows the specification will reject this line as an error.
Example: https://github.com/kingsleyh/DLanguage/issues/69
Comment #1 by dlang-bugzilla — 2016-01-18T11:37:37Z
It is mentioned here:
http://dlang.org/spec/intro.html
> 2. script line
> If the first line starts with "#!", then that line is ignored.
Comment #2 by greensunny12 — 2017-06-15T06:19:46Z
Closing as this is it's specified on the intro.
Please feel free to reopen if you think it absolutely needs to be part of the Lex page.