From 6b5d78a0177260e80f0ce4d30c550279e0bf8726 Mon Sep 17 00:00:00 2001 From: Grant Lemons Date: Wed, 4 Dec 2024 11:43:18 -0700 Subject: [PATCH] style(#230): expand explainer on str parsing --- harper-core/src/parsers/typst.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/harper-core/src/parsers/typst.rs b/harper-core/src/parsers/typst.rs index 36d4d9a1..c49bd73e 100644 --- a/harper-core/src/parsers/typst.rs +++ b/harper-core/src/parsers/typst.rs @@ -211,7 +211,8 @@ fn map_token( } Expr::Numeric(a) => constant_token!(doc, a, TokenKind::Unlintable), Expr::Str(text) => { - // Using `text.get()` doesn't work here, because it escapes quotes + // Using `text.get()` doesn't work here, because it escapes quotes which throws off + // the span parse_english(doc.get(doc.range(text.span())?)?, doc, parser, &text.span()) } Expr::Code(a) => constant_token!(doc, a, TokenKind::Unlintable),