-
Notifications
You must be signed in to change notification settings - Fork 485
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
codespell ignores C/C++ tabs ('\t') in strings #17
Comments
|
int main()
{
std::cout<< "\tTest\nin here";
} ❯ codespell --version
2.2.2
❯ codespell /tmp/1.c
/tmp/1.c:3: nin ==> inn, min, bin, nine |
codespell is language-agnostic. Handling escape characters would require to identify the type of each file and adapt |
I found out, that codespell gives wrong answers in case of a tab is used within a C/C++ string. For example:
test.c:
dict.txt:
Scanning with test.c with codespell gives a wrong result:
The text was updated successfully, but these errors were encountered: