Fix #360
This commit is contained in:
parent
9e64dcf8e2
commit
974882fd74
|
@ -331,8 +331,8 @@ Socket createSocket(string socketFile, ushort port)
|
||||||
|
|
||||||
void printDocResponse(ref const AutocompleteResponse response)
|
void printDocResponse(ref const AutocompleteResponse response)
|
||||||
{
|
{
|
||||||
import std.array: join;
|
import std.algorithm : each;
|
||||||
response.docComments.join("\n").writeln;
|
response.docComments.each!(writeln);
|
||||||
}
|
}
|
||||||
|
|
||||||
void printIdentifierResponse(ref const AutocompleteResponse response)
|
void printIdentifierResponse(ref const AutocompleteResponse response)
|
||||||
|
|
|
@ -82,7 +82,7 @@ public AutocompleteResponse getDoc(const AutocompleteRequest request,
|
||||||
return s.icmp("ditto") == 0;
|
return s.icmp("ditto") == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void putDDocChar(dchar c)
|
void putDDocChar(char c)
|
||||||
{
|
{
|
||||||
switch (c)
|
switch (c)
|
||||||
{
|
{
|
||||||
|
@ -102,7 +102,7 @@ public AutocompleteResponse getDoc(const AutocompleteRequest request,
|
||||||
|
|
||||||
void putDDocString(string s)
|
void putDDocString(string s)
|
||||||
{
|
{
|
||||||
foreach (c; s)
|
foreach (char c; s)
|
||||||
putDDocChar(c);
|
putDDocChar(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
D言語くん
|
|
@ -0,0 +1,3 @@
|
||||||
|
void a(){ foo(); }
|
||||||
|
/// D言語くん
|
||||||
|
void foo() {}
|
|
@ -0,0 +1,5 @@
|
||||||
|
set -e
|
||||||
|
set -u
|
||||||
|
|
||||||
|
../../bin/dcd-client $1 file.d -d -c11 > actual.txt
|
||||||
|
diff actual.txt expected.txt
|
Loading…
Reference in New Issue