From bd7675e5b71c74b17181cb276a119df280269d8c Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Fri, 8 May 2020 17:25:22 +0300 Subject: [PATCH] Fixed typo --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 9309ff1..9d25ac7 100644 --- a/src/main.zig +++ b/src/main.zig @@ -328,7 +328,7 @@ fn documentPositionContext(doc: types.TextDocument, pos_index: usize) PositionCo // Quick exit for comment lines and multi line string literals. if (line.len >= 2 and line[0] == '/' and line[1] == '/') return .comment; - if (line.len >= 2 and line[0] == '\\' and line [1] == '\\') + if (line.len >= 2 and line[0] == '\\' and line[1] == '\\') return .string_literal; // TODO: This does not detect if we are in a string literal over multiple lines.