[Issue 19142] ddoc inline code see # as a warning
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 6 00:57:59 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19142
ag0aep6g <ag0aep6g at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |ag0aep6g at gmail.com
Resolution|--- |INVALID
--- Comment #1 from ag0aep6g <ag0aep6g at gmail.com> ---
Those code sections are for D code only [1]. DMD relies on that insofar as that
it highlights the contents as D code. For that, the code goes through lexing,
which gives you the warning. You can also get errors when you violate D syntax
more severely (e.g., try putting a single quotation mark in there).
This issue is marked as an enhancement request, but I suspect that it was meant
as a bug report, stemming from a misunderstanding of what kind of code goes
into code sections.
So I'm closing this as invalid. DMD is working as intended and it's in line
with the spec. Feel free to reopen if this is really about making code sections
accept any content, not just D code.
[1] https://dlang.org/spec/ddoc.html#embedded_code
--
More information about the Digitalmars-d-bugs
mailing list