www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6090] New: DDoc parenthesis escape issues.

reply d-bugmail puremagic.com writes:
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



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: -------
Jun 02 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6090






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: -------
Jun 02 2011
prev sibling parent d-bugmail puremagic.com writes:
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



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: -------
Jun 06 2011