Merge branch 'master' of https://github.com/SuperAuguste/zls into goto_definition

This commit is contained in:
Alexandros Naskos
2020-05-18 23:20:18 +03:00
2 changed files with 4 additions and 4 deletions

View File

@@ -381,7 +381,7 @@ pub fn getFieldAccessTypeNode(
},
.Period => {
var after_period = tokenizer.next();
if (after_period.id == .Eof) {
if (after_period.id == .Eof or after_period.id == .Comma) {
return current_node;
} else if (after_period.id == .Identifier) {
// TODO: This works for now, maybe we should filter based on the partial identifier ourselves?