Thread overview
[Issue 6090] New: DDoc parenthesis escape issues.
Jun 02, 2011
kennytm@gmail.com
Jun 02, 2011
kennytm@gmail.com
Jun 06, 2011
Walter Bright
June 02, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6090

           Summary: DDoc parenthesis escape issues.
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Keywords: ddoc
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: kennytm@gmail.com


--- Comment #0 from kennytm@gmail.com 2011-06-02 12:32:46 PDT ---
I think these are known bugs, as shown in https://github.com/D-Programming-Language/phobos/commit/5cf3d7dd, but just not yet put into bugzilla.


1. Template string parameters are not escaped.
----------------------------------------------
///
template f(string s="$(RED red?!) )"){}
void main(){}
----------------------------------------------
The macro and the stray parenthesis are pushed as-is.


2. The '$' disappeared in '$(' and '$)' in function default parameter
---------------------------------------------------------------------
///
void f(string s="$(", string t="$)"){}
void main(){}
---------------------------------------------------------------------
The generated HTML wrongly reads 'void f(string s = "(", string t = ")");'.

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



--- Comment #1 from kennytm@gmail.com 2011-06-02 14:09:50 PDT ---
DMD pull #82.

https://github.com/D-Programming-Language/dmd/pull/82

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


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-06-06 00:18:06 PDT ---
https://github.com/D-Programming-Language/dmd/commit/f8e7f05c2161a2b99286f58bcb4c8295459860dd

https://github.com/D-Programming-Language/dmd/commit/cce360cdf1a79b5fce2fe003ce28f48708693885

https://github.com/D-Programming-Language/dmd/commit/92a9682ef8f23b93f9a89de3116ba7b7dafebd48

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