https://issues.dlang.org/show_bug.cgi?id=19142
ag0aep6g <ag0ae...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ag0ae...@gmail.com Resolution|--- |INVALID --- Comment #1 from ag0aep6g <ag0ae...@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 --