Skip to content

Commit

Permalink
style(#230): expand explainer on str parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
grantlemons committed Dec 9, 2024
1 parent f57d6c2 commit 550cf20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion harper-core/src/parsers/typst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 550cf20

Please sign in to comment.