Thanks to visit codestin.com
Credit goes to github.com

Skip to content

hissp.reader..Kwarg escape handling #277

@gilch

Description

@gilch

A Lissp Kwarg token is like a symbol ending in =, where the next-to-last character is either alnum or escaped with a backslash (otherwise it's just a symbol ending in QzEQ_). But the Kwarg object includes the backslash in its k for any escaped character. Those should be removed like for symbols and other tagging tokens.

A workaround for now would be to use hissp.reader..Kwarg## instead.

I've also noticed that my# can strip escapes for its own kwargs, but not if they appear in the scope. I'm not sure how this is working at all. Probably, the reader processes escapes when using the Kwarg object, but not when making it. I need to dig in to confirm.

Hissp is in a feature freeze for the time being, but that doesn't restrict bug fixes. I may need to release a version 0.5.1 for this (I'll also include any doc fixes). I should also add it to the changelog #273.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions