Included in v0.0.20
Since the spell checker has to run against all lines, there was a request to be able to reject a pattern, even though it is technically composed of valid words.
The canonical example was m_data which is apparently a macro in VxWorks that at least nasa/fprime and Qt tripped over.
But there are definitely other examples, e.g., of a deprecated API.
I can imagine adding an extra pass right before (or after? still thinking about this) patterns.txt
which looks for reject-patterns.txt
/ forbidden.txt
that works like patterns.txt
, but is run between patterns and the main spelling pass and screams if it finds matches.
Items in forbidden wouldn't blank things, they'd just flag separately and possibly report the specific pattern/line number that objected.
To date, the check-spelling has not really cared which file contributed a piece of input, it just merges everything together. Remembering sources adds overhead. I'm not sure how important this would be here.
Add as \bm_data\b
- When you add
javascript
toexpect.txt
, it will start acceptingJavascript
even though it should beJavaScript
Add as \bJavascript\b
Both micro
and soft
are in the dictionary, so this will not naturally be flagged, even though it is probably problematic.
Add as \bMicroSoft\b
# Reject duplicate words
\b(\w{3,})\s\g{-1}\b
FAQ | Showcase | Event descriptions | Configuration information | Known Issues | Possible features | Deprecations | Release notes | Helpful scripts