Merge pull request #320 from CyberShadow/goto-import

autocomplete: Fix goto-declaration for import statements
This commit is contained in:
Brian Schott 2016-04-12 03:35:26 -07:00
commit f56ab08102
4 changed files with 8 additions and 0 deletions

View File

@ -1153,6 +1153,7 @@ T getExpression(T)(T beforeTokens)
switch (beforeTokens[i].type)
{
case tok!"import":
i++;
break expressionLoop;
mixin (TYPE_IDENT_AND_LITERAL_CASES);
mixin (EXPRESSION_LOOP_BREAK);

View File

@ -0,0 +1 @@
/imports/std/stdio.d 0

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

@ -0,0 +1 @@
import std.stdio;

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

@ -0,0 +1,5 @@
set -e
set -u
../../bin/dcd-client $1 file.d -l -c 15 | sed s\""$(dirname "$(pwd)")"\"\" > actual1.txt
diff actual1.txt expected1.txt