mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-24 16:42:15 -05:00
docs: Clarify word vs identifier
This commit is contained in:
parent
4637c964a3
commit
b38d05b941
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ If there is any ambiguity (multiple possible corrections), `typos` will just rep
|
|||
|
||||
Sometimes, what looks like a typo is intentional, like with people's names, acronyms, or localized content.
|
||||
|
||||
To mark an identifier or word as valid, add it your [`_typos.toml`](docs/reference.md) by declaring itself as the valid spelling:
|
||||
To mark a word or an identifer (grouping of words) as valid, add it your [`_typos.toml`](docs/reference.md) by declaring itself as the valid spelling:
|
||||
```toml
|
||||
[default.extend-identifiers]
|
||||
# *sigh* this just isn't worth the cost of fixing
|
||||
|
|
|
@ -27,7 +27,7 @@ Configuration is read from the following (in precedence order)
|
|||
| default.check-file | \- | bool | Verifying spelling in files. |
|
||||
| default.unicode | --unicode | bool | Allow unicode characters in identifiers (and not just ASCII) |
|
||||
| default.locale | --locale | en, en-us, en-gb, en-ca, en-au | English dialect to correct to. |
|
||||
| default.extend-identifiers | \- | table of strings | Corrections for identifiers. When the correction is blank, the identifier is never valid. When the correction is the key, the identifier is always valid. |
|
||||
| default.extend-identifiers | \- | table of strings | Corrections for identifiers (grouping of words). When the correction is blank, the identifier is never valid. When the correction is the key, the identifier is always valid. |
|
||||
| default.extend-words | \- | table of strings | Corrections for words. When the correction is blank, the word is never valid. When the correction is the key, the word is always valid. |
|
||||
| type.\<name>.\<field> | \<varied> | \<varied> | See `default.` for child keys. Run with `--type-list` to see available `<name>`s |
|
||||
| type.\<name>.extend_globs | \- | list of strings | File globs for matching `<name>` |
|
||||
|
|
Loading…
Reference in a new issue