Fixed field_access check
This commit is contained in:
parent
0149f11c7c
commit
0b5eb4b9d2
@ -368,7 +368,7 @@ fn documentContext(doc: types.TextDocument, pos_index: usize) PositionContext {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c == '.' and context != .builtin) {
|
if (c == '.' and (!new_token or context == .string_literal)) {
|
||||||
new_token = true;
|
new_token = true;
|
||||||
context = .field_access;
|
context = .field_access;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user