Skip to content

Lexer reports false negative at end of input #680

Answered by Zij-IT
TheOnlyTails asked this question in Q&A
Discussion options

You must be logged in to vote

It doesn't falsely report anything ;) You have a bug in your string parsing logic.

        // You probably meant to write ^\\" here instead
        none_of(r"[^\\']").map(StringToken::Char),

Copy paste bit you in the butt :D

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@TheOnlyTails
Comment options

@Zij-IT
Comment options

@TheOnlyTails
Comment options

@Zij-IT
Comment options

Answer selected by TheOnlyTails
@TheOnlyTails
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants