Skip to content

SimpleTokenizer Special function does not account for string length correctly #2

@arturo-myota

Description

@arturo-myota

in lexer.go, line 164 the simple lexer can get a token reformatted/etc by a special function.
The special function returns the actual token to be used.

At line 185, the buffer is advanced by the length of the returned token from the Special function.
It should be advanced by the length of the consumed input.

Maybe Special should return the length it consumed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions