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

fix: "f..o.o;" crashes the server #629

Merged
merged 1 commit into from
Sep 7, 2022
Merged

Conversation

llogick
Copy link
Contributor

@llogick llogick commented Sep 5, 2022

this is a fix for #381 and a hack for #409
(related, get triggered by "f..o.o;")

merge or use as an inspiration to fix these

PS. only covers .field_access
ideally all calls to tree.tokenSlice(token) should be reworked to use ast.tokenSlice(tree, token)

Regards

this is a fix for zigtools#381 and a hack for zigtools#409
(related, get triggered by "f..o.o;")
Copy link
Member

@SuperAuguste SuperAuguste left a comment

Choose a reason for hiding this comment

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

Simple but elegant.

@SuperAuguste SuperAuguste merged commit 6269eef into zigtools:master Sep 7, 2022
@llogick llogick deleted the foo branch September 9, 2022 22:03
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