6090 – DDoc parenthesis escape issues.

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6090 - DDoc parenthesis escape issues.
Summary: DDoc parenthesis escape issues.
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Mac OS X
: P2 normal
Assignee: No Owner
URL:
Keywords: ddoc
Depends on:
Blocks:
Reported: 2011年06月02日 12:32 UTC by kennytm
Modified: 2011年06月06日 00:18 UTC (History)
1 user (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description kennytm 2011年06月02日 12:32:46 UTC
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 kennytm 2011年06月02日 14:09:50 UTC
DMD pull #82.
https://github.com/D-Programming-Language/dmd/pull/82 


AltStyle によって変換されたページ (->オリジナル) /