Skip to content

lexer: Fix empty string lit in middle of line#118

Merged
juliaogris merged 1 commit intomasterfrom
empty-string-lit-fix
Apr 16, 2023
Merged

lexer: Fix empty string lit in middle of line#118
juliaogris merged 1 commit intomasterfrom
empty-string-lit-fix

Conversation

@juliaogris
Copy link
Member

Fix empty string lit in middle of line. As we advance at the beginning
of reading string and then again when peekRune is " we overshoot for
empty strings "". Fix this be doing the outer advance only at the end
of the iteration.

@juliaogris juliaogris requested a review from camh- April 16, 2023 00:58
@github-actions
Copy link

github-actions bot commented Apr 16, 2023

firebase-deployment: https://evy-lang--118-egl2quu7.web.app (0bd98db)

Copy link
Member

@camh- camh- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Fix empty string lit in middle of line. As we advance at the beginning
of reading string and then again when peekRune is `"` we overshoot for
empty strings `""`. Fix this be doing the outer advance only at the end
of the iteration.
@juliaogris juliaogris force-pushed the empty-string-lit-fix branch from dcb0672 to 0bd98db Compare April 16, 2023 07:19
@juliaogris juliaogris merged commit 8eb73b7 into master Apr 16, 2023
@juliaogris juliaogris deleted the empty-string-lit-fix branch April 16, 2023 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants