Skip to content

Conversation

v1nh1shungry
Copy link
Contributor

Fix #475
When we type only error, both the lhs and rhs of the error_value node are 0. However, ast.lastToken() does not handle this, and it can cause zls to crash. This commit is to fix this.

@SuperAuguste
Copy link
Member

Thanks!

@SuperAuguste SuperAuguste merged commit 256d7b7 into zigtools:master Apr 20, 2022
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.

Panic when showing suggestions for error
2 participants