[Issue 13512] dmd cannot compile perfectly valid code with shebang

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Sep 22 15:57:32 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13512

--- Comment #13 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to Ketmar Dark from comment #12)
> (In reply to Andrei Alexandrescu from comment #11)
> > Not sure what best to do about this. I'd say if #! is detected, the first
> > line should be just scanned through the first \n and ignored. In a way the
> > semantics of the shebang line is determined by the environment. Regular
> > scanning shouldn't be affected.
> my attached patch does right that: it just skips shebang line if it is found
> and not changing other lexing code. and it mostly consists of deleted lines,
> so we now have less code to test! ;-)

Sounds good. Did you convert it to a pull request?

--


More information about the Digitalmars-d-bugs mailing list