@cspell/dict-perl 1.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023-2025 Street Side Software <support@streetsidesoftware.nl>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,168 @@
1
+ # CSpell Perl Dictionary
2
+
3
+ Perl built-in functions, keywords, and pragmas.
4
+
5
+ This is a pre-built dictionary for use with CSpell.
6
+
7
+ <!--- @@inject: ../../static/requirements.md --->
8
+
9
+ ## Requirements
10
+
11
+ | Tool | Version |
12
+ | ------------------------------------------------------------------------------------------------------------------------------------ | ------- |
13
+ | [cspell](https://github.com/streetsidesoftware/cspell) | `>= 8` |
14
+ | [Code Spell Checker - Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) | `>= 4` |
15
+
16
+ <!--- @@inject-end: ../../static/requirements.md --->
17
+
18
+ <!--- @@inject: ./static/install.md --->
19
+
20
+ ## Local Installation
21
+
22
+ ```sh
23
+ npm install -D @cspell/dict-perl
24
+ ```
25
+
26
+ ## Configuration
27
+
28
+ <details>
29
+ <summary>VSCode Settings</summary>
30
+
31
+ Add the following to your VSCode settings:
32
+
33
+ **`.vscode/settings.json`**
34
+
35
+ ```jsonc
36
+ {
37
+ "cSpell.import": ["@cspell/dict-perl/cspell-ext.json"],
38
+ "cSpell.dictionaries": ["perl"],
39
+ }
40
+ ```
41
+
42
+ </details>
43
+
44
+ <details>
45
+ <summary>CSpell Settings <code>cspell.json</code></summary>
46
+
47
+ **`cspell.json`**
48
+
49
+ ```jsonc
50
+ {
51
+ "import": ["@cspell/dict-perl/cspell-ext.json"],
52
+ "dictionaries": ["perl"],
53
+ }
54
+ ```
55
+
56
+ </details>
57
+
58
+ <details>
59
+ <summary>CSpell Settings <code>cspell.config.yaml</code></summary>
60
+
61
+ **`cspell.config.yaml`**
62
+
63
+ ```yaml
64
+ import:
65
+ - '@cspell/dict-perl/cspell-ext.json'
66
+ dictionaries:
67
+ - perl
68
+ ```
69
+
70
+ </details>
71
+
72
+ ## Local Installation using CDN
73
+
74
+ ## CDN Configuration
75
+
76
+ <details>
77
+ <summary>VSCode Settings</summary>
78
+
79
+ Add the following to your VSCode settings:
80
+
81
+ **`.vscode/settings.json`**
82
+
83
+ ```jsonc
84
+ {
85
+ "cSpell.import": ["https://cdn.jsdelivr.net/npm/@cspell/dict-perl@1/cspell-ext.json"],
86
+ "cSpell.dictionaries": ["perl"],
87
+ }
88
+ ```
89
+
90
+ </details>
91
+
92
+ <details>
93
+ <summary>CSpell Settings <code>cspell.json</code></summary>
94
+
95
+ **`cspell.json`**
96
+
97
+ ```jsonc
98
+ {
99
+ "import": ["https://cdn.jsdelivr.net/npm/@cspell/dict-perl@1/cspell-ext.json"],
100
+ "dictionaries": ["perl"],
101
+ }
102
+ ```
103
+
104
+ </details>
105
+
106
+ <details>
107
+ <summary>CSpell Settings <code>cspell.config.yaml</code></summary>
108
+
109
+ **`cspell.config.yaml`**
110
+
111
+ ```yaml
112
+ import:
113
+ - https://cdn.jsdelivr.net/npm/@cspell/dict-perl@1/cspell-ext.json
114
+ dictionaries:
115
+ - perl
116
+ ```
117
+
118
+ </details>
119
+
120
+ ## Dictionary Information
121
+
122
+ | Name | Enabled | Description |
123
+ | ------ | ------- | ----------------------------------------------- |
124
+ | `perl` | | Perl built-in functions, keywords, and pragmas. |
125
+
126
+ ## Language Settings
127
+
128
+ | Name | Locale | File Type |
129
+ | ------ | ------ | --------- |
130
+ | `perl` | `*` | `perl` |
131
+
132
+ <!--- @@inject-end: ./static/install.md --->
133
+
134
+ <!--- @@inject: ../../static/contributing.md --->
135
+
136
+ ## Contributing
137
+
138
+ Please help correct any mistakes in the dictionaries.
139
+
140
+ See: [Contributing](https://github.com/streetsidesoftware/cspell-dicts#contributing)
141
+
142
+ Special thanks to all of our amazing contributors!
143
+
144
+ ### Dictionary Development
145
+
146
+ See: [How to Create a New Dictionary](https://github.com/streetsidesoftware/cspell-dicts#how-to-create-a-new-dictionary)
147
+
148
+ <!--- @@inject-end: ../../static/contributing.md --->
149
+
150
+ ## License
151
+
152
+ MIT
153
+
154
+ > Some packages may have other licenses included.
155
+
156
+ <!--- @@inject: ../../static/footer.md --->
157
+
158
+ <br/>
159
+
160
+ ---
161
+
162
+ <p align="center">
163
+ Brought to you by <a href="https://streetsidesoftware.com" title="Street Side Software">
164
+ <img width="16" alt="Street Side Software Logo" src="https://i.imgur.com/CyduuVY.png" /> Street Side Software
165
+ </a>
166
+ </p>
167
+
168
+ <!--- @@inject-end: ../../static/footer.md --->
@@ -0,0 +1,44 @@
1
+ // cSpell Settings
2
+ {
3
+ "id": "perl",
4
+ "version": "0.2",
5
+ "name": "Perl",
6
+ "description": "Perl built-in functions, keywords, and pragmas.",
7
+ "readonly": true,
8
+ // List of dictionary files to add to the global list of dictionaries
9
+ "dictionaryDefinitions": [
10
+ {
11
+ "name": "perl",
12
+ "path": "./dict/perl.txt",
13
+ "description": "Perl built-in functions, keywords, and pragmas."
14
+ }
15
+ ],
16
+ // Dictionaries to always be used.
17
+ // Generally left empty
18
+ "dictionaries": [],
19
+ // Language Rules to apply to matching files.
20
+ // Files are matched on `languageId` and `locale`
21
+ "languageSettings": [
22
+ {
23
+ // VSCode languageId. i.e. typescript, java, go, cpp, javascript, markdown, latex
24
+ // * will match against any file type.
25
+ "languageId": "perl",
26
+ // Language locale. i.e. en-US, de-AT, or ru. * will match all locales.
27
+ // Multiple locales can be specified like: "en, en-US" to match both English and English US.
28
+ "locale": "*",
29
+ // By default the whole text of a file is included for spell checking
30
+ // Adding patterns to the "includeRegExpList" to only include matching patterns
31
+ "includeRegExpList": [],
32
+ // To exclude patterns, add them to "ignoreRegExpList"
33
+ "ignoreRegExpList": [],
34
+ // regex patterns than can be used with ignoreRegExpList or includeRegExpList
35
+ // Example: "pattern": [{ "name": "mdash", "pattern": "&mdash;" }]
36
+ // This could be included in "ignoreRegExpList": ["mdash"]
37
+ "patterns": [],
38
+ // List of dictionaries to enable by name in `dictionaryDefinitions`
39
+ "dictionaries": ["perl"],
40
+ // Dictionary definitions can also be supplied here. They are only used iff "languageId" and "locale" match.
41
+ "dictionaryDefinitions": []
42
+ }
43
+ ]
44
+ }
package/dict/perl.txt ADDED
@@ -0,0 +1,307 @@
1
+
2
+ # cspell-tools: keep-case no-split
3
+
4
+ ADJUST
5
+ AUTOLOAD
6
+ BEGIN
7
+ CHECK
8
+ DESTROY
9
+ END
10
+ INIT
11
+ UNITCHECK
12
+ __CLASS__
13
+ __DATA__
14
+ __END__
15
+ __FILE__
16
+ __LINE__
17
+ __PACKAGE__
18
+ __SUB__
19
+ abs
20
+ accept
21
+ alarm
22
+ all
23
+ and
24
+ any
25
+ atan2
26
+ attributes
27
+ autodie
28
+ autouse
29
+ base
30
+ bigint
31
+ bignum
32
+ bigrat
33
+ bind
34
+ binmode
35
+ bless
36
+ blib
37
+ break
38
+ builtin
39
+ bytes
40
+ caller
41
+ catch
42
+ charnames
43
+ chdir
44
+ chmod
45
+ chomp
46
+ chop
47
+ chown
48
+ chr
49
+ chroot
50
+ class
51
+ close
52
+ closedir
53
+ cmp
54
+ connect
55
+ constant
56
+ continue
57
+ cos
58
+ crypt
59
+ dbmclose
60
+ dbmopen
61
+ default
62
+ defer
63
+ defined
64
+ delete
65
+ deprecate
66
+ diagnostics
67
+ die
68
+ do
69
+ dump
70
+ each
71
+ else
72
+ elsif
73
+ encoding
74
+ endgrent
75
+ endhostent
76
+ endnetent
77
+ endprotoent
78
+ endpwent
79
+ endservent
80
+ eof
81
+ eq
82
+ eval
83
+ evalbytes
84
+ exec
85
+ exists
86
+ exit
87
+ exp
88
+ experimental
89
+ fc
90
+ fcntl
91
+ feature
92
+ field
93
+ fields
94
+ fileno
95
+ filetest
96
+ finally
97
+ flock
98
+ for
99
+ foreach
100
+ fork
101
+ format
102
+ formline
103
+ ge
104
+ getc
105
+ getgrent
106
+ getgrgid
107
+ getgrnam
108
+ gethostbyaddr
109
+ gethostbyname
110
+ gethostent
111
+ getlogin
112
+ getnetbyaddr
113
+ getnetbyname
114
+ getnetent
115
+ getpeername
116
+ getpgrp
117
+ getppid
118
+ getpriority
119
+ getprotobyname
120
+ getprotobynumber
121
+ getprotoent
122
+ getpwent
123
+ getpwnam
124
+ getpwuid
125
+ getservbyname
126
+ getservbyport
127
+ getservent
128
+ getsockname
129
+ getsockopt
130
+ given
131
+ glob
132
+ gmtime
133
+ goto
134
+ grep
135
+ gt
136
+ hex
137
+ if
138
+ index
139
+ int
140
+ integer
141
+ ioctl
142
+ isa
143
+ join
144
+ keys
145
+ kill
146
+ last
147
+ lc
148
+ lcfirst
149
+ le
150
+ length
151
+ less
152
+ lib
153
+ link
154
+ listen
155
+ local
156
+ locale
157
+ localtime
158
+ lock
159
+ log
160
+ lstat
161
+ lt
162
+ m
163
+ map
164
+ method
165
+ mkdir
166
+ mro
167
+ msgctl
168
+ msgget
169
+ msgrcv
170
+ msgsnd
171
+ my
172
+ ne
173
+ next
174
+ no
175
+ not
176
+ oct
177
+ ok
178
+ open
179
+ opendir
180
+ or
181
+ ord
182
+ our
183
+ overload
184
+ overloading
185
+ pack
186
+ package
187
+ parent
188
+ pipe
189
+ pop
190
+ pos
191
+ print
192
+ printf
193
+ prototype
194
+ push
195
+ q
196
+ qq
197
+ qr
198
+ quotemeta
199
+ qw
200
+ qx
201
+ rand
202
+ re
203
+ read
204
+ readdir
205
+ readline
206
+ readlink
207
+ readpipe
208
+ recv
209
+ redo
210
+ ref
211
+ rename
212
+ require
213
+ reset
214
+ return
215
+ reverse
216
+ rewinddir
217
+ rindex
218
+ rmdir
219
+ s
220
+ say
221
+ scalar
222
+ seek
223
+ seekdir
224
+ select
225
+ semctl
226
+ semget
227
+ semop
228
+ send
229
+ setgrent
230
+ sethostent
231
+ setnetent
232
+ setpgrp
233
+ setpriority
234
+ setprotoent
235
+ setpwent
236
+ setservent
237
+ setsockopt
238
+ shift
239
+ shmctl
240
+ shmget
241
+ shmread
242
+ shmwrite
243
+ shutdown
244
+ sigtrap
245
+ sin
246
+ sleep
247
+ socket
248
+ socketpair
249
+ sort
250
+ splice
251
+ split
252
+ sprintf
253
+ sqrt
254
+ srand
255
+ stat
256
+ state
257
+ strict
258
+ study
259
+ sub
260
+ subs
261
+ substr
262
+ symlink
263
+ syscall
264
+ sysopen
265
+ sysread
266
+ sysseek
267
+ system
268
+ syswrite
269
+ tell
270
+ telldir
271
+ threads
272
+ tie
273
+ tied
274
+ time
275
+ times
276
+ tr
277
+ truncate
278
+ try
279
+ uc
280
+ ucfirst
281
+ umask
282
+ undef
283
+ unless
284
+ unlink
285
+ unpack
286
+ unshift
287
+ untie
288
+ until
289
+ use
290
+ utf8
291
+ utime
292
+ values
293
+ vars
294
+ vec
295
+ version
296
+ vmsish
297
+ wait
298
+ waitpid
299
+ wantarray
300
+ warn
301
+ warnings
302
+ when
303
+ while
304
+ write
305
+ x
306
+ xor
307
+ y
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@cspell/dict-perl",
3
+ "version": "1.0.0-alpha.0",
4
+ "description": "Perl built-in functions, keywords, and pragmas.",
5
+ "publishConfig": {
6
+ "access": "public",
7
+ "provenance": true
8
+ },
9
+ "exports": {
10
+ ".": "./cspell-ext.json",
11
+ "./cspell": "./cspell-ext.json",
12
+ "./cspell-ext.json": "./cspell-ext.json"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/streetsidesoftware/cspell-dicts"
17
+ },
18
+ "keywords": [
19
+ "cspell",
20
+ "cspell-ext",
21
+ "perl",
22
+ "Perl",
23
+ "dictionary",
24
+ "spelling"
25
+ ],
26
+ "author": "Street Side Software",
27
+ "contributors": [],
28
+ "license": "MIT",
29
+ "bugs": {
30
+ "url": "https://github.com/streetsidesoftware/cspell-dicts/issues"
31
+ },
32
+ "homepage": "https://github.com/streetsidesoftware/cspell-dicts/blob/main/dictionaries/perl#readme",
33
+ "devDependencies": {},
34
+ "dependencies": {},
35
+ "files": [
36
+ "dict/perl.txt",
37
+ "cspell-ext.json",
38
+ "*.js",
39
+ "*.d.ts"
40
+ ],
41
+ "scripts": {
42
+ "build": "cspell-tools-cli build",
43
+ "test": "pnpm run test:words && pnpm run test:samples",
44
+ "prepare:dictionary": "pnpm run build",
45
+ "test:words": "head -n 1000 \"src/perl.txt\" | cspell -c ./cspell-ext.json \"--locale=*\" \"--languageId=perl\" stdin",
46
+ "test:samples": "cspell samples"
47
+ }
48
+ }