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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Sep 22 11:34:24 PDT 2014


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

--- Comment #12 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
(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! ;-)

--


More information about the Digitalmars-d-bugs mailing list