Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 16, 2023

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
Contributor

@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

pkg/lexer/lexer_test.go Show resolved Hide resolved
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 merged commit 8eb73b7 into master Apr 16, 2023
3 checks passed
@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.

None yet

2 participants