Bug 6090 – DDoc parenthesis escape issues.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Mac OS X
Creation time
2011-06-02T12:32:00Z
Last change time
2011-06-06T00:18:06Z
Keywords
ddoc
Assigned to
nobody
Creator
kennytm

Comments

Comment #0 by kennytm — 2011-06-02T12:32:46Z
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 = ")");'.
Comment #1 by kennytm — 2011-06-02T14:09:50Z
Comment #2 by bugzilla — 2011-06-06T00:18:06Z