Skip to content

Commit

Permalink
fix!: Update how words are split (#2033)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Mar 14, 2023
1 parent 14bc675 commit cae637e
Show file tree
Hide file tree
Showing 20 changed files with 74,054 additions and 1,233 deletions.
1 change: 1 addition & 0 deletions cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"checksum.txt",
"cSpell.json",
"cspell.json",
"dictionaries/*/dict/**/*.txt",
"dictionaries/*/src/**",
"generator-cspell-dicts/generators/app/templates/**",
"lerna.json",
Expand Down
9 changes: 7 additions & 2 deletions dictionaries/cpp/cspell-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@
"readonly": true,
// List of dictionary files to add to the global list of dictionaries
"dictionaryDefinitions": [
{
"name": "cpp-legacy",
"path": "./dict/cpp-legacy.txt",
"description": "Legacy C/C++ Keywords and common library functions."
},
{
"name": "cpp",
"path": "./cpp.txt.gz",
"path": "./dict/cpp.txt",
"description": "C/C++ Keywords and common library functions."
},
{
"name": "cpp-refined",
"path": "./cpp-refined.txt.gz",
"path": "./dict/cpp-refined.txt",
"description": "Refined list of C/C++ Keywords and common library functions."
}
],
Expand Down
50 changes: 50 additions & 0 deletions dictionaries/cpp/cspell-tools.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/streetsidesoftware/cspell/main/packages/cspell-tools/cspell-tools.config.schema.json

targets:
- name: "cpp"
sources:
- filename: src/cpp.txt
split: legacy
allowedSplitWords:
- ../en_US/en_US.trie
- ../software-terms/dict/softwareTerms.txt
- src/cpp.txt
- src/allowed-terms.txt
- src/compiler-clang-attributes.txt
- src/compiler-gcc.txt
- src/compiler-msvc.txt
- src/ecosystem.txt
- src/lang-jargon.txt
- src/lang-keywords.txt
- src/people.txt
- src/stdlib-c.txt
- src/stdlib-cerrno.txt
- src/stdlib-cmath.txt
- src/stdlib-cpp.txt
- src/template-strings.txt
- filename: src/allowed-terms.txt
format: plaintext
targetDirectory: "./dict"
generateNonStrict: false
compress: false
sort: true
- name: "cpp-legacy"
sources:
- filename: src/cpp.txt
split: legacy
format: plaintext
targetDirectory: "./dict"
generateNonStrict: false
compress: false
- name: cpp-refined
sources:
- listFile: source-files-cpp-refined.txt
split: true
# allowedSplitWords:
# - ../en_US/en_US.trie
# - ../software-terms/dict/softwareTerms.txt
# - src/allowed-terms.txt
format: plaintext
targetDirectory: "./dict"
generateNonStrict: false
compress: false
2 changes: 1 addition & 1 deletion dictionaries/cpp/cspell.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"files": ["**/*.{md,txt}"],
"ignorePaths": ["/src/cpp.txt"],
"ignorePaths": ["/src/cpp.txt", "cpp-legacy.txt", "dict"],
"dictionaries": ["cpp", "cpp-refined"],
"import": ["./cspell-ext.json"],
"ignoreWords": [],
Expand Down
Loading

0 comments on commit cae637e

Please sign in to comment.