Thread overview
[Issue 7656] New: ddoc misinterprets commented parentheses in an example
Dec 02, 2012
Andrej Mitrovic
Jul 02, 2013
Kenji Hara
Jul 07, 2013
Kenji Hara
March 06, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7656

           Summary: ddoc misinterprets commented parentheses in an example
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: schveiguy@yahoo.com


--- Comment #0 from Steven Schveighoffer <schveiguy@yahoo.com> 2012-03-06 08:06:20 PST ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7656



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-12-02 08:58:37 PST ---
https://github.com/D-Programming-Language/dmd/pull/1244

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 06, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7656



--- Comment #2 from github-bugzilla@puremagic.com 2012-12-06 00:42:42 PST ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 02, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7656



--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2013-07-01 18:11:26 PDT ---
(In reply to comment #1)
> https://github.com/D-Programming-Language/dmd/pull/1244

That was once merged, but was reverted so it had caused a regression: https://github.com/D-Programming-Language/dmd/pull/1244#issuecomment-11162068

New pull request: https://github.com/D-Programming-Language/dmd/pull/2287

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7656



--- Comment #4 from github-bugzilla@puremagic.com 2013-07-07 08:23:58 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7656


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------