Update cspell.json files with more words and better regexps

* Add some more words to the word lists
* Ignore anything that looks like a crate path in rust
* Ignore everything that looks like a color encoding (AARRGGBB and
  similar strings)
* Change regexp about `#[cfg...]` and `#[repr...]` in rust: Require
  a word boundary (space/opening parens/whatever) after the string.
* Ignore `Qt_...` in rust.
This commit is contained in:
Tobias Hunger 2021-07-02 22:08:01 +02:00 committed by Simon Hausmann
parent cf85c40a1b
commit dfb21b23ca

View file

@ -5,35 +5,30 @@
{ {
"languageId": "rust", "languageId": "rust",
"words": [ "words": [
"bindgen",
"builtins", "builtins",
"concat", "concat",
"Consts", "Consts",
"corelib",
"evenodd", "evenodd",
"femtovg", "femtovg",
"Flickable", "Flickable",
"fullscreen", "fullscreen",
"itertools",
"MaybeUninit",
"peekable", "peekable",
"Realloc", "Realloc",
"Rgba",
"rtti", "rtti",
"triomphe",
"uninit", "uninit",
"unmap", "unmap",
"viewbox", "unsync",
"wasm", "viewbox"
"winit"
], ],
"ignoreRegExpList": [ "ignoreRegExpList": [
"/#\\[cfg(.+)\\]/", "/#\\[cfg\\b.+\\]/",
"/#\\[repr(.+)\\]/", "/#\\[repr\\b.+\\]/",
// Excludes various crate paths // Exclude crate paths
"/crate::(.+)/", "/(\\b|::)[a-z0-9_]+::/",
"/winit::(.+)/", "/::[a-z0-9_]+(\\b|::)/",
"/core::(.+)/", // Qt things:
"/std::(.+)/" "/\\bQt_[a-zA-Z0-9_]+/"
] ]
}, },
{ {
@ -59,26 +54,44 @@
} }
], ],
"words": [ "words": [
"Bezier",
"cbindgen", "cbindgen",
"cmake", "cmake",
"colspan",
"datastructures",
"Goffart", "Goffart",
"gradians",
"Hausmann", "Hausmann",
"Helvetica", "Helvetica",
"layouting", // This would be worth renaming in the ItemVTable to layout_info "layouting", // This would be worth renaming in the ItemVTable to layout_info
"linebreak",
"listview", "listview",
"lvalue",
"MSVC", "MSVC",
"rowspan",
"rustc", "rustc",
"rvalue",
"SDK", "SDK",
"sixtyfps", "sixtyfps",
"SPDX", "SPDX",
"streetsidesoftware", "streetsidesoftware",
"testcase",
"tmpobj",
"toolchain", "toolchain",
"vtable" "uncompiled",
"untracked",
"vtable",
"wasm",
"xtask"
], ],
"ignorePaths": [ "ignorePaths": [
"cspell.json", "cspell.json",
"api/sixtyfps-cpp/docs/conf.py" "api/sixtyfps-cpp/docs/conf.py"
], ],
"ignoreRegExpList": [
// Color encodings in all languages:
"/\\b(0x|#)?[argbARGB]+\\b/"
],
"overrides": [ "overrides": [
{ {
"filename": "**/*.rst", "filename": "**/*.rst",