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

Correctly handle var decl without equal sign #701

Merged
merged 1 commit into from
Oct 9, 2022

Conversation

Techatrix
Copy link
Member

Previously this code snipped crashed zls because it assumed that every variable declaration has an equal sign

fn foo() void {
    var bar

    // 
    try baz();
}

@Techatrix Techatrix merged commit f204f34 into zigtools:master Oct 9, 2022
@Techatrix Techatrix deleted the semantic-token-fix branch October 9, 2022 01:37
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