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

Does not ignore Latex commands if command is preceded by backslash #754

Open
MeAmAnUsername opened this issue Nov 5, 2021 · 0 comments
Open
Labels

Comments

@MeAmAnUsername
Copy link

The checker ignores Latex commands (word preceded by \), but not if the command is preceded by one or more escaped backslashes (\\)
image

Text from the image:

askjdh      % Correctly flagged
\askjdh     % Correctly ignored
\\askjdh    % Correctly flagged
\\\askjdh   % Incorrectly flagged
\\\\askjdh  % Correctly flagged
\\\\\askjdh % Not flagged? Seems to be a caching issue
\\\\\askjdg % incorrectly flagged
\\\\\askjdd % incorrectly flagged

For five backslashes, it does not give an error for askjdh but it does for other incorrect words. Some experimenting brings up the hypothesis that it does not give errors on the same word after a certain number of occurrences. Either way, that's not what this issue is about.

Expected behavior: ignore commands, i.e. ignore words preceded by an odd number of backslashes
Actual behavior: it ignores words only if there is exactly one backslash in front of it

@Jason3S Jason3S transferred this issue from streetsidesoftware/vscode-spell-checker Nov 5, 2021
@Jason3S Jason3S added the LaTeX label Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants