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
spell checker disabled after \$ in .tex file #627
Comments
@Easy121, I believe this is related to how the LaTeX dictionary defines macros to be ignored. |
I encountered this same error and tried to characterise it. The error will occur if an unmatched The error doesn't always occur when using Key characteristics
Example to demonstrate this behaviour\documentclass{article}
\begin{document}
spellingerrorone $a$ spellingerrortwo
%Unmatched dollar 1 $
spellingerrorthree $b$ spellingerrorfour
% Unmatched dollar 2 $
spellingerrorfive $c$ spellingerrorsix
% Unmatched dollar 3 $
spellingerrorsevern $d$ spellingerroreight
\end{document}
Source of errorIt seems that the error is related to the the ignoring everything inside of a maths expression. Everything between a pair of unmatched dollar signs is being treated as a big maths expression. I don't quite understand how cspell works - is this the ignore? If it is, then making it detect if the cspell-dicts/dictionaries/latex/cspell-ext.json Lines 34 to 36 in d598f4e
|
I am writing in .tex file in VSCode, and a part of my file looks like this:
The
quitsdfe
in the third paragraph should be underlined as spelling mistake but it's not. However, after I deleting all the\$
in the first paragraph, the underline ofquitsdfe
is back on again.I think it's kind of a bug and I can't find ways to deal with it. It's my first time raising an issue and I appreciate your help very much!
The text was updated successfully, but these errors were encountered: