parent
661cd02a22
commit
8e0b4e0e03
|
@ -116,7 +116,7 @@ public struct DocStr
|
||||||
private DocType type;
|
private DocType type;
|
||||||
private DocContent content;
|
private DocContent content;
|
||||||
|
|
||||||
public enum DocType getType()
|
public DocType getType()
|
||||||
{
|
{
|
||||||
return this.type;
|
return this.type;
|
||||||
}
|
}
|
||||||
|
@ -210,19 +210,19 @@ private class CommentParser
|
||||||
lines[i] = strip(lines[i]);
|
lines[i] = strip(lines[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Strip first line of the `/**`
|
// Strip first line of the `/`
|
||||||
lines[0] = stripLeft(lines[0], "/**");
|
lines[0] = stripLeft(lines[0], "/");
|
||||||
|
|
||||||
// Strip all lines between the starting and ending delimiter
|
// Strip last line of the `/`
|
||||||
// of their `*`s
|
lines[$-1] = stripRight(lines[$-1], "/");
|
||||||
for(ulong i = 1; i < lines.length-1; i++)
|
|
||||||
|
// Strip all lines of `*` (on either side)
|
||||||
|
for(ulong i = 0; i < lines.length; i++)
|
||||||
{
|
{
|
||||||
lines[i] = stripLeft(lines[i], "*");
|
lines[i] = strip(lines[i], "*");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Strip last line of a a `*/`
|
|
||||||
lines[lines.length-1] = stripLeft(lines[lines.length-1], "*/");
|
|
||||||
|
|
||||||
version(unittest)
|
version(unittest)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue