-
Notifications
You must be signed in to change notification settings - Fork 0
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
Ignore symbols from code #46
Labels
enhancement
New feature or request
Comments
As an extension on this, quickly commenting out a block of code quickly leads to a ton of false positives. Maybe this could take care of that too? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would not lint text that matches the name of one of the symbols in the code.
The check itself can be done fast if a Lua table exists of all symbols known to tree-sitter then we only need to check for each word if it is in the table.
The problem is getting such a table as it needs to be up to date each time we start checking a new piece of text. For now the only way I see we could do this is adding a tree-sitter query that extracts symbols and updates the table. Taking care to remove items that no longer exist
The text was updated successfully, but these errors were encountered: