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

Add unused variable highlighting #155

Merged
merged 1 commit into from
Jun 17, 2023

Conversation

grkek
Copy link
Contributor

@grkek grkek commented Dec 5, 2022

I think having a highlighting feature for unused variables would be a great addition for better user experience

@nobodywasishere
Copy link
Member

Thank you for your contribution! It appears you have a regex \\b_([\\w]+[?!]?) for matching unused variables, would \\b_\\w* work or is there an edge case I'm missing?

https://crystal-lang.org/reference/1.8/syntax_and_semantics/assignment.html#underscore

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