internal: add typos.toml as typo white list

This commit is contained in:
Young-Flash 2024-02-01 21:04:38 +08:00
parent 42cb1a2bd7
commit 36cb518791
2 changed files with 56 additions and 1 deletions

55
.typos.toml Normal file
View file

@ -0,0 +1,55 @@
[default.extend-identifiers]
makro = "makro"
VisibilityExplicity = "VisibilityExplicity"
impl_froms = "impl_froms"
AnserStyle = "AnserStyle"
explicity = "explicity"
syntaxically = "syntaxically"
datas = "datas"
selfs = "selfs"
TOOD = "TOOD"
strustS = "strustS"
new_function_with_generics_and_wheres = "new_function_with_generics_and_wheres"
Defaul = "Defaul"
nto = "nto"
nknown = "nknown"
ded = "ded"
truct = "truct"
inpu = "inpu"
Convertable = "Convertable"
substitude = "substitude"
nner = "nner"
Contro = "Contro"
numbe = "numbe"
MyUnio = "MyUnio"
[default.extend-words]
anser = "anser"
ba = "ba"
fromed = "fromed"
fo = "fo"
trivias = "trivias"
mmaped = "mmaped"
mis = "mis"
ket = "ket"
foor = "foor"
FPR = "FPR"
mak = "mak"
OT = "OT"
raison = "raison"
strat = "strat"
unaccessable = "unaccessable"
[default]
extend-ignore-re = [
# ignore string which contains $x (x is a num), which use widely in test
".*\\$\\d.*"
]
[files]
extend-exclude = [
"*.json",
"*.rast",
"crates/parser/test_data/lexer/err/*",
"bench_data/*",
]

View file

@ -239,7 +239,7 @@ The primary goal of `onEnter` is to handle automatic indentation when opening a
This is not yet implemented.
The secondary goal is to handle fixing up syntax, like continuing doc strings and comments, and escaping `\n` in string literals.
As proper cursor positioning is raison-d'etat for `onEnter`, it uses `SnippetTextEdit`.
As proper cursor positioning is raison d'être for `onEnter`, it uses `SnippetTextEdit`.
### Unresolved Question