diff --git a/src/main.zig b/src/main.zig index 4376151..038a495 100644 --- a/src/main.zig +++ b/src/main.zig @@ -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;