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
Comment #2 by github-bugzilla — 2012-12-06T00:42:42Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/06c24c831020e6da8ad3cc6deaa1820538e73fb5 Fixes Issue 7656, Fixes Issue 7715. Escape special characters in ddoc d code. https://github.com/D-Programming-Language/dmd/commit/ab5258d5bcedc55dbfeeb0fb4cc4d283f184c7fd Merge pull request #1244 from AndrejMitrovic/Fix7656 [ddoc] Issue 7656 and 7715 - ddoc must escape special characters
Comment #3 by k.hara.pg — 2013-07-01T18:11:26Z
Comment #4 by github-bugzilla — 2013-07-07T08:23:58Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0a1cb852ef3fd1cb1cae6143029ed1cddfcf3806 fix Issue 7656 - ddoc misinterprets commented parentheses in an example