Skip to content

read-from-string's source don't take into account :start #75

@fstamour

Description

@fstamour

I'm not sure if it's on purpose or not, but when using (read-from-string ... :start n) with a custom client, the positions returned are relative to n instead of being relative to the start of the string.

So (read-from-string "0123x" :start 4) would return a node corresponding to x but with the source (0 . 1) where I expected (4 . 5).

For now, I'll just use the workaround of storing start in the client and add that to the source in the right methods...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingunclear-in-specIssues related to unclear parts of the spec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions