Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #1244 from AndrejMitrovic/Fix7656
[ddoc] Issue 7656 and 7715 - ddoc must escape special characters
- Loading branch information
Showing
5 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// PERMUTE_ARGS: | ||
// REQUIRED_ARGS: -D -Ddtest_results/compilable -o- | ||
// POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh 7656 | ||
|
||
module ddoc7656; | ||
|
||
/** | ||
-------- | ||
int x; // This is a $ comment (and here is some | ||
int y; // more information about that comment) | ||
-------- | ||
*/ | ||
void main() { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// PERMUTE_ARGS: | ||
// REQUIRED_ARGS: -D -Ddtest_results/compilable -o- | ||
// POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh 7715 | ||
|
||
module ddoc7656; | ||
|
||
/** | ||
$1 $2 | ||
--- | ||
string s = "$1$2 $ $4"; | ||
--- | ||
*/ | ||
void foo(){} | ||
|
||
/// | ||
void test(string a = ")") {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<html><head> | ||
<META http-equiv="content-type" content="text/html; charset=utf-8"> | ||
<title>ddoc7656</title> | ||
</head><body> | ||
<h1>ddoc7656</h1> | ||
<br><br> | ||
<dl><dt><big><a name="main"></a>void <u>main</u>(); | ||
</big></dt> | ||
<dd><pre class="d_code"><font color=blue>int</font> x; <font color=green>// This is a $ comment (and here is some | ||
</font><font color=blue>int</font> y; <font color=green>// more information about that comment) | ||
</font></pre> | ||
<br><br> | ||
|
||
</dd> | ||
</dl> | ||
|
||
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/2.0/ddoc.html">Ddoc</a>. </small> | ||
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<html><head> | ||
<META http-equiv="content-type" content="text/html; charset=utf-8"> | ||
<title>ddoc7656</title> | ||
</head><body> | ||
<h1>ddoc7656</h1> | ||
<br><br> | ||
<dl><dt><big><a name="foo"></a>void <u>foo</u>(); | ||
</big></dt> | ||
<dd>$1 $2 | ||
<pre class="d_code">string s = <font color=red>"$1$2 $ &#36;4"</font>; | ||
</pre> | ||
<br><br> | ||
|
||
</dd> | ||
<dt><big><a name="test"></a>void <u>test</u>(string <i>a</i> = ")"); | ||
</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
</dl> | ||
|
||
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/2.0/ddoc.html">Ddoc</a>. </small> | ||
</body></html> |