EWSoftware / VSSpellChecker

A Visual Studio spell checker editor extension that checks the spelling of comments, strings, and plain text as you type. Supports configuration and various languages.
Other
377 stars 65 forks source link

Ignored word list being ignored #222

Closed cwoffenden closed 3 years ago

cwoffenden commented 3 years ago

I added a few Doxygen tags to the ignored word list and they're not being ignored. I can easily reproduce this:

The result being that these ignored words are still flagged:

Spellcheck result

Edit: this is with the latest v2020.8.24.0 release.

EWSoftware commented 3 years ago

I tested it and, if you add the words manually, it adds them to the list properly but if importing them from a file, it incorrectly leaves the leading slash on certain words when it should not. It should strip the leading slash on endcode and param as \e and \p aren't valid escape sequences. The leading slash is only kept if it's a valid escape sequence such as the \t on \tparam. See the description of escaped words for more information.

I'll fix it for the next release. To work around it in the meantime, edit your word import file to remove the leading slash on words that don't start with a valid escape sequence.