[Issue 6090] New: DDoc parenthesis escape issues.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 2 12:37:12 PDT 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 at puremagic.com
        ReportedBy: kennytm at gmail.com


--- Comment #0 from kennytm at 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: -------


More information about the Digitalmars-d-bugs mailing list