diff --git a/makefile b/makefile index f0d8a49..f1ee138 100644 --- a/makefile +++ b/makefile @@ -100,7 +100,8 @@ DEBUG_SERVER_FLAGS := -Icontainers/src\ -Ilibdparse/src\ -wi\ -g\ - -ofbin/dcd-server + -ofbin/dcd-server\ + -J. GDC_SERVER_FLAGS := -Icontainers/src\ -Imsgpack-d/src\ diff --git a/src/autocomplete.d b/src/autocomplete.d index 74ef550..68d008a 100644 --- a/src/autocomplete.d +++ b/src/autocomplete.d @@ -727,11 +727,13 @@ ACSymbol*[] getSymbolsByTokenChain(T)(Scope* completionScope, if (!p.isSliceExpression()) { symbols = symbols[0].type is null ? [] : [symbols[0].type]; + if (symbols.length == 0) + break loop; } } else if (symbols[0].qualifier == SymbolQualifier.assocArray) { - symbols = symbols[0].type is null ? [] :[symbols[0].type]; + symbols = symbols[0].type is null ? [] : [symbols[0].type]; skip(); } else