Fixed field_access check

This commit is contained in:
Alexandros Naskos 2020-05-08 15:07:14 +03:00
parent 0149f11c7c
commit 0b5eb4b9d2

View File

@ -368,7 +368,7 @@ fn documentContext(doc: types.TextDocument, pos_index: usize) PositionContext {
continue;
}
if (c == '.' and context != .builtin) {
if (c == '.' and (!new_token or context == .string_literal)) {
new_token = true;
context = .field_access;
continue;