-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Latex: No spell checking within escaped $ #1083
Comments
This is really an issue with how the exclusions are defined in the LaTeX dictionary settings. |
Jason3S
added a commit
that referenced
this issue
May 14, 2022
It should be fixed with the next release. It might be a few days before this is fixed in the VS Code extension. In the mean time, you can redefine the pattern locally: VS Code Settings"cSpell.languageSettings": [
{
"languageId": "latex",
"patterns": [
{
"name": "LaTexMath",
"pattern": "/(?<!\\\\)[$][^$]*[$]/g",
"description": "Match against LaTex Math Macros"
}
]
}
]
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the sample .tex code below, the first and third instance of dolllar is identified as incorrectly spelling. However, when you have any text between
$
symbols it is not checked.Normally between
$
symbols is math mode and it would be correct to not spell check; however, in this case the symbols are escaped and I am actually trying to use the $ (dollar) symbol in my document.Currently nearly my entire large .tex document is not spell checked because I have a $ symbol near the beginning and near the end.
The text was updated successfully, but these errors were encountered: