-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
.cspell.json
105 lines (105 loc) · 3.42 KB
/
.cspell.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// cSpell Settings
{
// Version of the setting file. Always 0.2
"version": "0.2",
"description": "Sample .cspell.json file with comments.",
// language - current active spelling language
"language": "en",
"allowCompoundWords": false,
// words - list of words to be always considered correct
"words": [
"gensequence",
"xregexp",
"sampletrace",
"findall"
],
"maxNumberOfProblems": 10000,
"ignorePaths": [
"dictionaries/**",
"node_modules/**",
"vscode-extension/**",
".git/**",
".vscode/**"
],
// flagWords - list of words to be always considered incorrect
// This is useful for offensive words and common spelling errors.
// For example "hte" should be "the"
"flagWords": [
"hte"
],
"dictionaryDefinitions": [
{
"name": "local words",
"path": "./words.txt"
},
{
"name": "missing dictionary file",
"path": "./.missing.txt"
}
],
"dictionaries": [
"local words"
],
"languageSettings": [
{
// VSCode languageId. i.e. typescript, java, go, cpp, javascript, markdown, latex
// * will match against any file type.
"languageId": "c,cpp",
// Language locale. i.e. en-US, de-AT, or ru. * will match all locales.
// Multiple locales can be specified like: "en, en-US" to match both English and English US.
"locale": "*",
// By default the whole text of a file is included for spell checking
// Adding patterns to the "includeRegExpList" to only include matching patterns
"includeRegExpList": [
"CStyleComment",
"string"
],
// To exclude patterns, add them to "ignoreRegExpList"
"ignoreRegExpList": [
"/#include.*/"
],
// regex patterns than can be used with ignoreRegExpList or includeRegExpList
// Example: "pattern": [{ "name": "mdash", "pattern": "—" }]
// This could be included in "ignoreRegExpList": ["mdash"]
"patterns": [
{
"name": "string",
"pattern": "/(?:(['\"])(?:\\\\\\\\|(?:\\\\\\1)|[^\\1\\n])+\\1)|(?:([`])(?:\\\\\\\\|(?:\\\\\\2)|[^\\2])+?\\2)/gi"
}
],
// List of dictionaries to enable by name in `dictionaryDefinitions`
"dictionaries": [
"cpp"
],
// Dictionary definitions can also be supplied here. They are only used iff "languageId" and "local" match.
"dictionaryDefinitions": []
},
{
// Turn off allowCompoundWords for Python
"languageId": "python",
"allowCompoundWords": false
}
],
"overrides": [
{
"filename": "**/{*.py}",
"ignoreRegExpList": [
"/'s\\b/"
]
},
{
"filename": "**/{*.c,*.cpp}",
"ignoreRegExpList": [
"/'s\\b/"
]
},
// Force `*.txt` to use the Dutch dictionary (Dutch dictionary needs to be installed separately):
{
"language": "nl",
"filename": "**/dutch/*.txt"
}
],
"import": [
"@cspell/dict-nl-nl/cspell-ext.json"
]
}