This commit is contained in:
Hackerpilot 2015-10-30 11:32:54 -07:00
parent fe94f860a3
commit 2a5dd5f738
4 changed files with 74 additions and 1 deletions

View File

@ -501,7 +501,9 @@ body
if (kind == ImportKind.normal) if (kind == ImportKind.normal)
{ {
while (beforeTokens[i].type != tok!"," && beforeTokens[i].type != tok!"import") i--; while (beforeTokens[i].type != tok!"," && beforeTokens[i].type != tok!"import"
&& beforeTokens[i].type != tok!"=" )
i--;
setImportCompletions(beforeTokens[i .. $], response, moduleCache); setImportCompletions(beforeTokens[i .. $], response, moduleCache);
return response; return response;
} }

65
tests/tc022/expected.txt Normal file
View File

@ -0,0 +1,65 @@
identifiers
algorithm M
array M
ascii M
base64 M
bigint M
bitmanip M
c P
compiler M
complex M
concurrency M
container M
conv M
cstream M
csv M
d P
datetime M
demangle M
digest P
encoding M
exception M
experimental P
file M
format M
functional M
getopt M
internal P
json M
lexer M
math M
mathspecial M
metastrings M
mmfile M
net P
numeric M
outbuffer M
parallelism M
path M
process M
random M
range M
regex M
signals M
socket M
socketstream M
stdint M
stdio M
stdiobase M
stream M
string M
syserror M
system M
traits M
typecons M
typelist M
typetuple M
uni M
uri M
utf M
uuid M
variant M
windows P
xml M
zip M
zlib M

1
tests/tc022/file.d Normal file
View File

@ -0,0 +1 @@
import io = std.

5
tests/tc022/run.sh Executable file
View File

@ -0,0 +1,5 @@
set -e
set -u
../../bin/dcd-client file.d -c16 > actual.txt
diff actual.txt expected.txt