Bug 15556 – Script line missing from lexical specification

Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-01-11T22:47:00Z
Last change time
2017-06-15T06:19:46Z
Keywords
spec, trivial
Assigned to
nobody
Creator
briancschott
Blocks
10233

Comments

Comment #0 by briancschott — 2016-01-11T22:47:04Z
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.