You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not possible to whitelist the word "C++" by adding it to the local Hunspell dictionary.
Adding "^[cC][+][+]$" to the transform_regex list also does not help.
To Reproduce
Steps to reproduce the behaviour:
A file containing the word "C++"
Add "C++" into the local Hunspell dictionary.
Run cargo spellcheck ....
A spelling error message is displayed for every "+" in "C++".
Expected behavior
Hunspell finds "C++" in the local dictionary and accepts it as correct.
Screenshots
error: spellcheck(Hunspell)
--> /home/x/y.md:252
|
252 | Specifically, the GNU C++ compiler version 8.2 or newer and
| ^
| Possible spelling mistake found.
error: spellcheck(Hunspell)
--> /home/x/y.md:252
|
252 | Specifically, the GNU C++ compiler version 8.2 or newer and
| ^
| Possible spelling mistake found.
Please complete the following information:
System: Arch Linux
Obtained: pacman
Version: cargo-spellcheck 0.11.2
The text was updated successfully, but these errors were encountered:
A workaround is to .. yes, exactly this - allow + tokens. Tokenization is done by a third party lib and will never be perfect. Either use ``` or add the workaround you found.
If you would like to make spellcheck aware of additional splitchars, there is tokenization_splitchars in [Hunspell].
Describe the bug
It is not possible to whitelist the word "C++" by adding it to the local Hunspell dictionary.
Adding "^[cC][+][+]$" to the
transform_regex
list also does not help.To Reproduce
Steps to reproduce the behaviour:
cargo spellcheck ...
.Expected behavior
Hunspell finds "C++" in the local dictionary and accepts it as correct.
Screenshots
Please complete the following information:
The text was updated successfully, but these errors were encountered: