Skip to content

Commit d1b0320

Browse files
committed
fix(lexer): Fixed constant quote_type being used
1 parent 686ed68 commit d1b0320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/lexer/src/tokens/token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ impl TypeDefinition {
241241
if buffer.get(
242242
TryInto::<usize>::try_into(buffer.len() - 2).unwrap_or(buffer.len() - 1),
243243
) == Some(&'\\')
244-
&& buffer.last() == Some(&'"')
244+
&& buffer.last() == Some(&quote_type)
245245
{
246246
annotate_snippets::SourceAnnotation {
247247
range: (

0 commit comments

Comments
 (0)