From 0b5eb4b9d2516cc115c16ea53b6f18424d322e4b Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Fri, 8 May 2020 15:07:14 +0300 Subject: [PATCH] Fixed field_access check --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;