Skip to content

Commit

Permalink
fix: code block source locations
Browse files Browse the repository at this point in the history
  • Loading branch information
david-christiansen committed Dec 6, 2024
1 parent de92f53 commit 0951379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/verso/Verso/Parser.lean
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ private def asStringAux (quoted : Bool) (startPos : String.Pos) (transform : Str
let val := transform val
let trailing := mkEmptySubstringAt input stopPos
let atom :=
mkAtom (SourceInfo.original leading startPos trailing (startPos + val)) <|
mkAtom (SourceInfo.original leading startPos trailing stopPos) <|
if quoted then val.quote else val
s.pushSyntax atom
Expand Down

0 comments on commit 0951379

Please sign in to comment.