Bug 7656 – ddoc misinterprets commented parentheses in an example
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-06T08:06:00Z
Last change time
2013-07-07T09:13:44Z
Keywords
ddoc, pull
Assigned to
andrej.mitrovich
Creator
schveiguy
Comments
Comment #0 by schveiguy — 2012-03-06T08:06:20Z
Consider this example:
--------
int x; // This is a comment (and here is some
int y; // more information about that comment)
--------
In the resulting html file, the second line (int y) is colored as if it were commented out, and the output looks like this:
int x; // This is a comment (and here is some
) int y; // more information about that comment
As a workaround, you can avoid parentheses inside comments.
This likely affects D1 too, but I'm not sure. Tested with 2.058
Comment #1 by andrej.mitrovich — 2012-12-02T08:58:37Z