Fixed typo
This commit is contained in:
parent
09cd91690c
commit
bd7675e5b7
@ -328,7 +328,7 @@ fn documentPositionContext(doc: types.TextDocument, pos_index: usize) PositionCo
|
|||||||
// Quick exit for comment lines and multi line string literals.
|
// Quick exit for comment lines and multi line string literals.
|
||||||
if (line.len >= 2 and line[0] == '/' and line[1] == '/')
|
if (line.len >= 2 and line[0] == '/' and line[1] == '/')
|
||||||
return .comment;
|
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;
|
return .string_literal;
|
||||||
|
|
||||||
// TODO: This does not detect if we are in a string literal over multiple lines.
|
// TODO: This does not detect if we are in a string literal over multiple lines.
|
||||||
|
Loading…
Reference in New Issue
Block a user