@nsis/codemirror 0.13.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 +11 -0
- package/README.md +37 -0
- package/dist/index.cjs +772 -0
- package/dist/index.d.cts +7 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.mjs +770 -0
- package/package.json +54 -0
- package/src/highlight.ts +32 -0
- package/src/index.ts +320 -0
- package/src/nsis.grammar +261 -0
- package/src/parser.js +19 -0
- package/src/parser.terms.js +62 -0
- package/src/string-tokens.ts +101 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,772 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let _codemirror_autocomplete = require("@codemirror/autocomplete");
|
|
3
|
+
let _codemirror_language = require("@codemirror/language");
|
|
4
|
+
let _lezer_highlight = require("@lezer/highlight");
|
|
5
|
+
let _lezer_lr = require("@lezer/lr");
|
|
6
|
+
//#region src/highlight.ts
|
|
7
|
+
const nsisHighlighting = (0, _lezer_highlight.styleTags)({
|
|
8
|
+
CommandName: _lezer_highlight.tags.keyword,
|
|
9
|
+
"Function FunctionEnd Section SectionEnd SectionGroup SectionGroupEnd PageEx PageExEnd Var": _lezer_highlight.tags.keyword,
|
|
10
|
+
PreprocKeyword: _lezer_highlight.tags.processingInstruction,
|
|
11
|
+
PreprocIf: _lezer_highlight.tags.processingInstruction,
|
|
12
|
+
PreprocElse: _lezer_highlight.tags.processingInstruction,
|
|
13
|
+
PreprocEndif: _lezer_highlight.tags.processingInstruction,
|
|
14
|
+
PreprocMacro: _lezer_highlight.tags.processingInstruction,
|
|
15
|
+
PreprocMacroEnd: _lezer_highlight.tags.processingInstruction,
|
|
16
|
+
Constant: _lezer_highlight.tags.constant(_lezer_highlight.tags.name),
|
|
17
|
+
ArgumentValue: _lezer_highlight.tags.atom,
|
|
18
|
+
Variable: _lezer_highlight.tags.variableName,
|
|
19
|
+
DefineReference: _lezer_highlight.tags.special(_lezer_highlight.tags.variableName),
|
|
20
|
+
LangStringReference: _lezer_highlight.tags.special(_lezer_highlight.tags.string),
|
|
21
|
+
Flag: _lezer_highlight.tags.attributeName,
|
|
22
|
+
Number: _lezer_highlight.tags.number,
|
|
23
|
+
String: _lezer_highlight.tags.string,
|
|
24
|
+
RawString: _lezer_highlight.tags.string,
|
|
25
|
+
BacktickString: _lezer_highlight.tags.string,
|
|
26
|
+
"DQEscape SQEscape BTEscape": _lezer_highlight.tags.escape,
|
|
27
|
+
"DQVariable SQVariable BTVariable": _lezer_highlight.tags.variableName,
|
|
28
|
+
"DQDefineRef SQDefineRef BTDefineRef": _lezer_highlight.tags.special(_lezer_highlight.tags.variableName),
|
|
29
|
+
"DQLangRef SQLangRef BTLangRef": _lezer_highlight.tags.special(_lezer_highlight.tags.string),
|
|
30
|
+
LineComment: _lezer_highlight.tags.lineComment,
|
|
31
|
+
BlockComment: _lezer_highlight.tags.blockComment,
|
|
32
|
+
Label: _lezer_highlight.tags.labelName,
|
|
33
|
+
LabelReference: _lezer_highlight.tags.labelName,
|
|
34
|
+
"PluginCall/Identifier": _lezer_highlight.tags.className,
|
|
35
|
+
"::": _lezer_highlight.tags.punctuation
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/string-tokens.ts
|
|
39
|
+
function makeTokenizer(endChar, content, escapeToken, variable, defineRef, langRef) {
|
|
40
|
+
return new _lezer_lr.ExternalTokenizer((input) => {
|
|
41
|
+
const ch = input.next;
|
|
42
|
+
if (ch < 0 || ch === endChar) return;
|
|
43
|
+
if (ch === 36) {
|
|
44
|
+
const next = input.peek(1);
|
|
45
|
+
if (next === 92) {
|
|
46
|
+
if (input.peek(2) >= 0) {
|
|
47
|
+
input.advance(3);
|
|
48
|
+
input.acceptToken(escapeToken);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
if (next === 36) {
|
|
53
|
+
input.advance(2);
|
|
54
|
+
input.acceptToken(escapeToken);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (next === 123) {
|
|
58
|
+
input.advance(2);
|
|
59
|
+
while (input.next >= 0 && input.next !== 125) input.advance();
|
|
60
|
+
if (input.next === 125) input.advance();
|
|
61
|
+
input.acceptToken(defineRef);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (next === 40) {
|
|
65
|
+
input.advance(2);
|
|
66
|
+
while (input.next >= 0 && input.next !== 41) input.advance();
|
|
67
|
+
if (input.next === 41) input.advance();
|
|
68
|
+
input.acceptToken(langRef);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (next >= 65 && next <= 90 || next >= 97 && next <= 122 || next === 95) {
|
|
72
|
+
input.advance(2);
|
|
73
|
+
while (true) {
|
|
74
|
+
const c = input.next;
|
|
75
|
+
if (c >= 65 && c <= 90 || c >= 97 && c <= 122 || c >= 48 && c <= 57 || c === 95 || c === 46) input.advance();
|
|
76
|
+
else break;
|
|
77
|
+
}
|
|
78
|
+
input.acceptToken(variable);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (next >= 48 && next <= 57) {
|
|
82
|
+
input.advance(2);
|
|
83
|
+
input.acceptToken(variable);
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
do
|
|
88
|
+
input.advance();
|
|
89
|
+
while (input.next >= 0 && input.next !== endChar && input.next !== 36);
|
|
90
|
+
input.acceptToken(content);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
const dqTokenizer = makeTokenizer(34, 81, 1, 2, 3, 4);
|
|
94
|
+
const sqTokenizer = makeTokenizer(39, 82, 5, 6, 7, 8);
|
|
95
|
+
const btTokenizer = makeTokenizer(96, 83, 9, 10, 11, 12);
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/parser.js
|
|
98
|
+
const spec_Identifier = {
|
|
99
|
+
__proto__: null,
|
|
100
|
+
"!addincludedir": 40,
|
|
101
|
+
"!addplugindir": 40,
|
|
102
|
+
"!appendfile": 40,
|
|
103
|
+
"!appendmemfile": 40,
|
|
104
|
+
"!assert": 40,
|
|
105
|
+
"!cd": 40,
|
|
106
|
+
"!define": 40,
|
|
107
|
+
"!delfile": 40,
|
|
108
|
+
"!echo": 40,
|
|
109
|
+
"!error": 40,
|
|
110
|
+
"!execute": 40,
|
|
111
|
+
"!finalize": 40,
|
|
112
|
+
"!getdllversion": 40,
|
|
113
|
+
"!gettlbversion": 40,
|
|
114
|
+
"!include": 40,
|
|
115
|
+
"!insertmacro": 40,
|
|
116
|
+
"!macroundef": 40,
|
|
117
|
+
"!makensis": 40,
|
|
118
|
+
"!packhdr": 40,
|
|
119
|
+
"!pragma": 40,
|
|
120
|
+
"!searchparse": 40,
|
|
121
|
+
"!searchreplace": 40,
|
|
122
|
+
"!system": 40,
|
|
123
|
+
"!tempfile": 40,
|
|
124
|
+
"!undef": 40,
|
|
125
|
+
"!uninstfinalize": 40,
|
|
126
|
+
"!verbose": 40,
|
|
127
|
+
"!warning": 40,
|
|
128
|
+
admin: 70,
|
|
129
|
+
all: 70,
|
|
130
|
+
"amd64-unicode": 70,
|
|
131
|
+
auto: 70,
|
|
132
|
+
both: 70,
|
|
133
|
+
bottom: 70,
|
|
134
|
+
bzip2: 70,
|
|
135
|
+
components: 70,
|
|
136
|
+
current: 70,
|
|
137
|
+
custom: 70,
|
|
138
|
+
default: 70,
|
|
139
|
+
directory: 70,
|
|
140
|
+
false: 70,
|
|
141
|
+
force: 70,
|
|
142
|
+
hide: 70,
|
|
143
|
+
highest: 70,
|
|
144
|
+
ifdiff: 70,
|
|
145
|
+
ifnewer: 70,
|
|
146
|
+
instfiles: 70,
|
|
147
|
+
lastused: 70,
|
|
148
|
+
leave: 70,
|
|
149
|
+
left: 70,
|
|
150
|
+
license: 70,
|
|
151
|
+
listonly: 70,
|
|
152
|
+
lzma: 70,
|
|
153
|
+
nevershow: 70,
|
|
154
|
+
none: 70,
|
|
155
|
+
normal: 70,
|
|
156
|
+
notset: 70,
|
|
157
|
+
off: 70,
|
|
158
|
+
on: 70,
|
|
159
|
+
right: 70,
|
|
160
|
+
show: 70,
|
|
161
|
+
silent: 70,
|
|
162
|
+
silentlog: 70,
|
|
163
|
+
textonly: 70,
|
|
164
|
+
top: 70,
|
|
165
|
+
true: 70,
|
|
166
|
+
try: 70,
|
|
167
|
+
"un.components": 70,
|
|
168
|
+
"un.custom": 70,
|
|
169
|
+
"un.directory": 70,
|
|
170
|
+
"un.instfiles": 70,
|
|
171
|
+
"un.license": 70,
|
|
172
|
+
uninstConfirm: 70,
|
|
173
|
+
user: 70,
|
|
174
|
+
zlib: 70,
|
|
175
|
+
Var: 78,
|
|
176
|
+
Abort: 84,
|
|
177
|
+
AddBrandingImage: 84,
|
|
178
|
+
AddSize: 84,
|
|
179
|
+
AllowRootDirInstall: 84,
|
|
180
|
+
AllowSkipFiles: 84,
|
|
181
|
+
AutoCloseWindow: 84,
|
|
182
|
+
BGFont: 84,
|
|
183
|
+
BGGradient: 84,
|
|
184
|
+
BrandingText: 84,
|
|
185
|
+
BringToFront: 84,
|
|
186
|
+
Call: 84,
|
|
187
|
+
CallInstDLL: 84,
|
|
188
|
+
Caption: 84,
|
|
189
|
+
ChangeUI: 84,
|
|
190
|
+
CheckBitmap: 84,
|
|
191
|
+
ClearErrors: 84,
|
|
192
|
+
CompletedText: 84,
|
|
193
|
+
ComponentText: 84,
|
|
194
|
+
CopyFiles: 84,
|
|
195
|
+
CPU: 84,
|
|
196
|
+
CRCCheck: 84,
|
|
197
|
+
CreateDirectory: 84,
|
|
198
|
+
CreateFont: 84,
|
|
199
|
+
CreateShortCut: 84,
|
|
200
|
+
Delete: 84,
|
|
201
|
+
DeleteINISec: 84,
|
|
202
|
+
DeleteINIStr: 84,
|
|
203
|
+
DeleteRegKey: 84,
|
|
204
|
+
DeleteRegValue: 84,
|
|
205
|
+
DetailPrint: 84,
|
|
206
|
+
DetailsButtonText: 84,
|
|
207
|
+
DirText: 84,
|
|
208
|
+
DirVar: 84,
|
|
209
|
+
DirVerify: 84,
|
|
210
|
+
EnableWindow: 84,
|
|
211
|
+
EnumRegKey: 84,
|
|
212
|
+
EnumRegValue: 84,
|
|
213
|
+
Exch: 84,
|
|
214
|
+
Exec: 84,
|
|
215
|
+
ExecShell: 84,
|
|
216
|
+
ExecShellWait: 84,
|
|
217
|
+
ExecWait: 84,
|
|
218
|
+
ExpandEnvStrings: 84,
|
|
219
|
+
File: 84,
|
|
220
|
+
FileBufSize: 84,
|
|
221
|
+
FileClose: 84,
|
|
222
|
+
FileErrorText: 84,
|
|
223
|
+
FileOpen: 84,
|
|
224
|
+
FileRead: 84,
|
|
225
|
+
FileReadByte: 84,
|
|
226
|
+
FileReadUTF16LE: 84,
|
|
227
|
+
FileReadWord: 84,
|
|
228
|
+
FileSeek: 84,
|
|
229
|
+
FileWrite: 84,
|
|
230
|
+
FileWriteByte: 84,
|
|
231
|
+
FileWriteUTF16LE: 84,
|
|
232
|
+
FileWriteWord: 84,
|
|
233
|
+
FindClose: 84,
|
|
234
|
+
FindFirst: 84,
|
|
235
|
+
FindNext: 84,
|
|
236
|
+
FindWindow: 84,
|
|
237
|
+
FlushINI: 84,
|
|
238
|
+
GetCurInstType: 84,
|
|
239
|
+
GetCurrentAddress: 84,
|
|
240
|
+
GetDlgItem: 84,
|
|
241
|
+
GetDLLVersion: 84,
|
|
242
|
+
GetDLLVersionLocal: 84,
|
|
243
|
+
GetErrorLevel: 84,
|
|
244
|
+
GetFileTime: 84,
|
|
245
|
+
GetFileTimeLocal: 84,
|
|
246
|
+
GetFullPathName: 84,
|
|
247
|
+
GetFunctionAddress: 84,
|
|
248
|
+
GetInstDirError: 84,
|
|
249
|
+
GetKnownFolderPath: 84,
|
|
250
|
+
GetLabelAddress: 84,
|
|
251
|
+
GetRegView: 84,
|
|
252
|
+
GetShellVarContext: 84,
|
|
253
|
+
GetTempFileName: 84,
|
|
254
|
+
GetWinVer: 84,
|
|
255
|
+
Goto: 84,
|
|
256
|
+
HideWindow: 84,
|
|
257
|
+
Icon: 84,
|
|
258
|
+
IfAbort: 84,
|
|
259
|
+
IfAltRegView: 84,
|
|
260
|
+
IfErrors: 84,
|
|
261
|
+
IfFileExists: 84,
|
|
262
|
+
IfRebootFlag: 84,
|
|
263
|
+
IfRtlLanguage: 84,
|
|
264
|
+
IfShellVarContextAll: 84,
|
|
265
|
+
IfSilent: 84,
|
|
266
|
+
InitPluginsDir: 84,
|
|
267
|
+
InstallButtonText: 84,
|
|
268
|
+
InstallColors: 84,
|
|
269
|
+
InstallDir: 84,
|
|
270
|
+
InstallDirRegKey: 84,
|
|
271
|
+
InstProgressFlags: 84,
|
|
272
|
+
InstType: 84,
|
|
273
|
+
InstTypeGetText: 84,
|
|
274
|
+
InstTypeSetText: 84,
|
|
275
|
+
Int64Cmp: 84,
|
|
276
|
+
Int64CmpU: 84,
|
|
277
|
+
Int64Fmt: 84,
|
|
278
|
+
IntCmp: 84,
|
|
279
|
+
IntCmpU: 84,
|
|
280
|
+
IntFmt: 84,
|
|
281
|
+
IntOp: 84,
|
|
282
|
+
IntPtrCmp: 84,
|
|
283
|
+
IntPtrCmpU: 84,
|
|
284
|
+
IntPtrOp: 84,
|
|
285
|
+
IsWindow: 84,
|
|
286
|
+
LangString: 84,
|
|
287
|
+
LicenseBkColor: 84,
|
|
288
|
+
LicenseData: 84,
|
|
289
|
+
LicenseForceSelection: 84,
|
|
290
|
+
LicenseLangString: 84,
|
|
291
|
+
LicenseText: 84,
|
|
292
|
+
LoadAndSetImage: 84,
|
|
293
|
+
LoadLanguageFile: 84,
|
|
294
|
+
LockWindow: 84,
|
|
295
|
+
LogSet: 84,
|
|
296
|
+
LogText: 84,
|
|
297
|
+
ManifestAppendCustomString: 84,
|
|
298
|
+
ManifestDisableWindowFiltering: 84,
|
|
299
|
+
ManifestDPIAware: 84,
|
|
300
|
+
ManifestDPIAwareness: 84,
|
|
301
|
+
ManifestGdiScaling: 84,
|
|
302
|
+
ManifestLongPathAware: 84,
|
|
303
|
+
ManifestMaxVersionTested: 84,
|
|
304
|
+
ManifestSupportedOS: 84,
|
|
305
|
+
MessageBox: 84,
|
|
306
|
+
MiscButtonText: 84,
|
|
307
|
+
Name: 84,
|
|
308
|
+
Nop: 84,
|
|
309
|
+
OutFile: 84,
|
|
310
|
+
Page: 84,
|
|
311
|
+
PageCallbacks: 84,
|
|
312
|
+
PEAddResource: 84,
|
|
313
|
+
PEDllCharacteristics: 84,
|
|
314
|
+
PERemoveResource: 84,
|
|
315
|
+
PESubsysVer: 84,
|
|
316
|
+
Pop: 84,
|
|
317
|
+
Push: 84,
|
|
318
|
+
Quit: 84,
|
|
319
|
+
ReadEnvStr: 84,
|
|
320
|
+
ReadINIStr: 84,
|
|
321
|
+
ReadMemory: 84,
|
|
322
|
+
ReadRegDWORD: 84,
|
|
323
|
+
ReadRegStr: 84,
|
|
324
|
+
Reboot: 84,
|
|
325
|
+
RegDLL: 84,
|
|
326
|
+
Rename: 84,
|
|
327
|
+
RequestExecutionLevel: 84,
|
|
328
|
+
ReserveFile: 84,
|
|
329
|
+
Return: 84,
|
|
330
|
+
RMDir: 84,
|
|
331
|
+
SearchPath: 84,
|
|
332
|
+
SectionGetFlags: 84,
|
|
333
|
+
SectionGetInstTypes: 84,
|
|
334
|
+
SectionGetSize: 84,
|
|
335
|
+
SectionGetText: 84,
|
|
336
|
+
SectionIn: 84,
|
|
337
|
+
SectionInstType: 84,
|
|
338
|
+
SectionSetFlags: 84,
|
|
339
|
+
SectionSetInstTypes: 84,
|
|
340
|
+
SectionSetSize: 84,
|
|
341
|
+
SectionSetText: 84,
|
|
342
|
+
SendMessage: 84,
|
|
343
|
+
SetAutoClose: 84,
|
|
344
|
+
SetBrandingImage: 84,
|
|
345
|
+
SetCompress: 84,
|
|
346
|
+
SetCompressionLevel: 84,
|
|
347
|
+
SetCompressor: 84,
|
|
348
|
+
SetCompressorDictSize: 84,
|
|
349
|
+
SetCtlColors: 84,
|
|
350
|
+
SetCurInstType: 84,
|
|
351
|
+
SetDatablockOptimize: 84,
|
|
352
|
+
SetDateSave: 84,
|
|
353
|
+
SetDetailsPrint: 84,
|
|
354
|
+
SetDetailsView: 84,
|
|
355
|
+
SetErrorLevel: 84,
|
|
356
|
+
SetErrors: 84,
|
|
357
|
+
SetFileAttributes: 84,
|
|
358
|
+
SetFont: 84,
|
|
359
|
+
SetOutPath: 84,
|
|
360
|
+
SetOverwrite: 84,
|
|
361
|
+
SetRebootFlag: 84,
|
|
362
|
+
SetRegView: 84,
|
|
363
|
+
SetShellVarContext: 84,
|
|
364
|
+
SetSilent: 84,
|
|
365
|
+
ShowInstDetails: 84,
|
|
366
|
+
ShowUninstDetails: 84,
|
|
367
|
+
ShowWindow: 84,
|
|
368
|
+
SilentInstall: 84,
|
|
369
|
+
SilentUnInstall: 84,
|
|
370
|
+
Sleep: 84,
|
|
371
|
+
SpaceTexts: 84,
|
|
372
|
+
StrCmp: 84,
|
|
373
|
+
StrCmpS: 84,
|
|
374
|
+
StrCpy: 84,
|
|
375
|
+
StrLen: 84,
|
|
376
|
+
SubCaption: 84,
|
|
377
|
+
Target: 84,
|
|
378
|
+
Unicode: 84,
|
|
379
|
+
UnsafeStrCpy: 84,
|
|
380
|
+
UninstallButtonText: 84,
|
|
381
|
+
UninstallCaption: 84,
|
|
382
|
+
UninstallIcon: 84,
|
|
383
|
+
UninstallSubCaption: 84,
|
|
384
|
+
UninstallText: 84,
|
|
385
|
+
UninstPage: 84,
|
|
386
|
+
UnRegDLL: 84,
|
|
387
|
+
VIAddVersionKey: 84,
|
|
388
|
+
VIFileVersion: 84,
|
|
389
|
+
VIProductVersion: 84,
|
|
390
|
+
WindowIcon: 84,
|
|
391
|
+
WriteINIStr: 84,
|
|
392
|
+
WriteRegBin: 84,
|
|
393
|
+
WriteRegDWORD: 84,
|
|
394
|
+
WriteRegExpandStr: 84,
|
|
395
|
+
WriteRegMultiStr: 84,
|
|
396
|
+
WriteRegNone: 84,
|
|
397
|
+
WriteRegStr: 84,
|
|
398
|
+
WriteUninstaller: 84,
|
|
399
|
+
XPStyle: 84,
|
|
400
|
+
Function: 90,
|
|
401
|
+
"!macro": 96,
|
|
402
|
+
Section: 100,
|
|
403
|
+
SectionEnd: 102,
|
|
404
|
+
SectionGroup: 106,
|
|
405
|
+
"!if": 112,
|
|
406
|
+
"!ifdef": 112,
|
|
407
|
+
"!ifndef": 112,
|
|
408
|
+
"!ifmacrodef": 112,
|
|
409
|
+
"!ifmacrondef": 112,
|
|
410
|
+
"!else": 116,
|
|
411
|
+
"!endif": 120,
|
|
412
|
+
SectionGroupEnd: 122,
|
|
413
|
+
PageEx: 126,
|
|
414
|
+
PageExEnd: 128,
|
|
415
|
+
"!macroend": 136,
|
|
416
|
+
FunctionEnd: 138
|
|
417
|
+
};
|
|
418
|
+
const parser = _lezer_lr.LRParser.deserialize({
|
|
419
|
+
version: 14,
|
|
420
|
+
states: "0zQ`QWOOOOQO'#Cn'#CnO!{QWO'#CmO#VQWO'#DQOOQO'#DV'#DVO#[QWO'#DUO#fQWO'#EZOOQO'#D]'#D]OOQO'#De'#DeO#nQWO'#DdO#uQWO'#D[OOQO'#DX'#DXOOQO'#Dt'#DtQ`QWOOQOQWOOO#zQWO'#DSO$SQWO'#D_O$ZQWO'#DbO$bQWO'#DlO$iQWO'#DYO%RQXO'#CrO%kQYO'#CtO&TQ[O'#CvOOQO'#DO'#DOOOQO'#EV'#EVOOQO'#Du'#DuO&[QWO,59XO&fQWO,59lO&kQWO,59pOOQO,5:p,5:pO&uQWO,5:OO&|QWO,5:OO'kQWO,59vOOQO-E7r-E7rOOQO,59n,59nO'sQWO,59nO'xQWO,59yO(PQWO,59yO(kQWO,59|O)^QWO,59|O)eQWO,5:WO)lQWO,5:WO*WQWO,59tO*_QWO,59tOOQP'#Dv'#DvO*yQXO,59^OOQO,59^,59^OOQQ'#Dw'#DwO+QQYO,59`OOQO,59`,59`OOQS'#Dx'#DxO+XQ[O,59bOOQO,59b,59bOO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#P#_#jSZO]W!fw!e!g#TV#O!a!}#PS[O]f!]ouy{!X!^!c!i!k#_#jW!fw!e!g#TV#O!a!}#PyXO]ouwy{!X!^!a!c!e!g!i!k!}#P#T#_#jX!w![!t!x#[Q!z![S#]!t!xR#i#[Q#d#QR#l#aQ]ORq]QjQQlTQnXQt`QvaQxbQzcb!Vjlntvxz!s#^Q!s!WR#^!wQ}dR!m}Q!QeR!o!QQ!TfR!q!Td!^ouy{!X!c!i!k#_#jR!{!^Q!`pR!|!`S#P!a!}R#b#PQ!gwQ#T!eT#V!g#TQ!x![Q#[!tT#`!x#[uiQTX`abcjlntvxz!W!s!w#^Q![oQ!duQ!jyQ!l{Q!t!XQ#R!cQ#W!iQ#Y!kQ#k#_R#m#jQ#Q!aR#a!}T^O]",
|
|
423
|
+
nodeNames: "⚠ DQEscape DQVariable DQDefineRef DQLangRef SQEscape SQVariable SQDefineRef SQLangRef BTEscape BTVariable BTDefineRef BTLangRef LineComment BlockComment LineContinuation Script PreprocDirective PreprocKeyword Identifier PreprocKeyword \" String ' RawString ` BacktickString Variable DefineReference LangStringReference Number Flag LabelReference Constant ArgumentValue ArgumentValue PluginCall ColonColon VariableDeclaration Var Command CommandName CommandName Block FunctionBlock Function MacroBlock PreprocMacro PreprocMacro SectionBlock Section SectionEnd SectionGroupBlock SectionGroup PreprocConditional PreprocIf PreprocIf PreprocElse PreprocElse PreprocEndif PreprocEndif SectionGroupEnd PageExBlock PageEx PageExEnd : Label PreprocMacroEnd PreprocMacroEnd FunctionEnd",
|
|
424
|
+
maxTerm: 91,
|
|
425
|
+
skippedNodes: [
|
|
426
|
+
0,
|
|
427
|
+
13,
|
|
428
|
+
14,
|
|
429
|
+
15
|
|
430
|
+
],
|
|
431
|
+
repeatNodeCount: 10,
|
|
432
|
+
tokenData: "-{~RfXY!gYZ!u]^!gpq!gqr!zrs#ist#ntu$Vwx'R{|'W}!O'W!O!P(w!P!Q)]!Q!R'a!R![(Q![!]+p!]!^#n!c!},o#O#P-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
+
0
|
|
438
|
+
],
|
|
439
|
+
topRules: { "Script": [0, 16] },
|
|
440
|
+
specialized: [{
|
|
441
|
+
term: 19,
|
|
442
|
+
get: (value) => spec_Identifier[value] || -1
|
|
443
|
+
}],
|
|
444
|
+
tokenPrec: 710
|
|
445
|
+
});
|
|
446
|
+
//#endregion
|
|
447
|
+
//#region src/index.ts
|
|
448
|
+
const nsisLanguage = _codemirror_language.LRLanguage.define({
|
|
449
|
+
name: "nsis",
|
|
450
|
+
parser: parser.configure({ props: [
|
|
451
|
+
nsisHighlighting,
|
|
452
|
+
_codemirror_language.indentNodeProp.add({
|
|
453
|
+
FunctionBlock: (cx) => cx.baseIndent + cx.unit,
|
|
454
|
+
SectionBlock: (cx) => cx.baseIndent + cx.unit,
|
|
455
|
+
SectionGroupBlock: (cx) => cx.baseIndent + cx.unit,
|
|
456
|
+
PageExBlock: (cx) => cx.baseIndent + cx.unit,
|
|
457
|
+
MacroBlock: (cx) => cx.baseIndent + cx.unit,
|
|
458
|
+
PreprocConditional: (cx) => cx.baseIndent + cx.unit
|
|
459
|
+
}),
|
|
460
|
+
_codemirror_language.foldNodeProp.add({
|
|
461
|
+
FunctionBlock: _codemirror_language.foldInside,
|
|
462
|
+
SectionBlock: _codemirror_language.foldInside,
|
|
463
|
+
SectionGroupBlock: _codemirror_language.foldInside,
|
|
464
|
+
PageExBlock: _codemirror_language.foldInside,
|
|
465
|
+
MacroBlock: _codemirror_language.foldInside,
|
|
466
|
+
PreprocConditional: _codemirror_language.foldInside,
|
|
467
|
+
BlockComment: _codemirror_language.foldInside
|
|
468
|
+
})
|
|
469
|
+
] }),
|
|
470
|
+
languageData: {
|
|
471
|
+
commentTokens: {
|
|
472
|
+
line: "#",
|
|
473
|
+
block: {
|
|
474
|
+
open: "/*",
|
|
475
|
+
close: "*/"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
closeBrackets: { brackets: [
|
|
479
|
+
"(",
|
|
480
|
+
"[",
|
|
481
|
+
"{",
|
|
482
|
+
"\"",
|
|
483
|
+
"'",
|
|
484
|
+
"`"
|
|
485
|
+
] }
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
const nsisCompletion = (0, _codemirror_autocomplete.completeFromList)([
|
|
489
|
+
"Abort",
|
|
490
|
+
"AddBrandingImage",
|
|
491
|
+
"AddSize",
|
|
492
|
+
"AllowRootDirInstall",
|
|
493
|
+
"AllowSkipFiles",
|
|
494
|
+
"AutoCloseWindow",
|
|
495
|
+
"BGFont",
|
|
496
|
+
"BGGradient",
|
|
497
|
+
"BrandingText",
|
|
498
|
+
"BringToFront",
|
|
499
|
+
"Call",
|
|
500
|
+
"CallInstDLL",
|
|
501
|
+
"Caption",
|
|
502
|
+
"ChangeUI",
|
|
503
|
+
"CheckBitmap",
|
|
504
|
+
"ClearErrors",
|
|
505
|
+
"CompletedText",
|
|
506
|
+
"ComponentText",
|
|
507
|
+
"CopyFiles",
|
|
508
|
+
"CPU",
|
|
509
|
+
"CRCCheck",
|
|
510
|
+
"CreateDirectory",
|
|
511
|
+
"CreateFont",
|
|
512
|
+
"CreateShortCut",
|
|
513
|
+
"Delete",
|
|
514
|
+
"DeleteINISec",
|
|
515
|
+
"DeleteINIStr",
|
|
516
|
+
"DeleteRegKey",
|
|
517
|
+
"DeleteRegValue",
|
|
518
|
+
"DetailPrint",
|
|
519
|
+
"DetailsButtonText",
|
|
520
|
+
"DirText",
|
|
521
|
+
"DirVar",
|
|
522
|
+
"DirVerify",
|
|
523
|
+
"EnableWindow",
|
|
524
|
+
"EnumRegKey",
|
|
525
|
+
"EnumRegValue",
|
|
526
|
+
"Exch",
|
|
527
|
+
"Exec",
|
|
528
|
+
"ExecShell",
|
|
529
|
+
"ExecShellWait",
|
|
530
|
+
"ExecWait",
|
|
531
|
+
"ExpandEnvStrings",
|
|
532
|
+
"File",
|
|
533
|
+
"FileBufSize",
|
|
534
|
+
"FileClose",
|
|
535
|
+
"FileErrorText",
|
|
536
|
+
"FileOpen",
|
|
537
|
+
"FileRead",
|
|
538
|
+
"FileReadByte",
|
|
539
|
+
"FileReadUTF16LE",
|
|
540
|
+
"FileReadWord",
|
|
541
|
+
"FileSeek",
|
|
542
|
+
"FileWrite",
|
|
543
|
+
"FileWriteByte",
|
|
544
|
+
"FileWriteUTF16LE",
|
|
545
|
+
"FileWriteWord",
|
|
546
|
+
"FindClose",
|
|
547
|
+
"FindFirst",
|
|
548
|
+
"FindNext",
|
|
549
|
+
"FindWindow",
|
|
550
|
+
"FlushINI",
|
|
551
|
+
"Function",
|
|
552
|
+
"FunctionEnd",
|
|
553
|
+
"GetCurInstType",
|
|
554
|
+
"GetCurrentAddress",
|
|
555
|
+
"GetDlgItem",
|
|
556
|
+
"GetDLLVersion",
|
|
557
|
+
"GetDLLVersionLocal",
|
|
558
|
+
"GetErrorLevel",
|
|
559
|
+
"GetFileTime",
|
|
560
|
+
"GetFileTimeLocal",
|
|
561
|
+
"GetFullPathName",
|
|
562
|
+
"GetFunctionAddress",
|
|
563
|
+
"GetInstDirError",
|
|
564
|
+
"GetKnownFolderPath",
|
|
565
|
+
"GetLabelAddress",
|
|
566
|
+
"GetRegView",
|
|
567
|
+
"GetShellVarContext",
|
|
568
|
+
"GetTempFileName",
|
|
569
|
+
"GetWinVer",
|
|
570
|
+
"Goto",
|
|
571
|
+
"HideWindow",
|
|
572
|
+
"Icon",
|
|
573
|
+
"IfAbort",
|
|
574
|
+
"IfAltRegView",
|
|
575
|
+
"IfErrors",
|
|
576
|
+
"IfFileExists",
|
|
577
|
+
"IfRebootFlag",
|
|
578
|
+
"IfRtlLanguage",
|
|
579
|
+
"IfShellVarContextAll",
|
|
580
|
+
"IfSilent",
|
|
581
|
+
"InitPluginsDir",
|
|
582
|
+
"InstallButtonText",
|
|
583
|
+
"InstallColors",
|
|
584
|
+
"InstallDir",
|
|
585
|
+
"InstallDirRegKey",
|
|
586
|
+
"InstProgressFlags",
|
|
587
|
+
"InstType",
|
|
588
|
+
"InstTypeGetText",
|
|
589
|
+
"InstTypeSetText",
|
|
590
|
+
"Int64Cmp",
|
|
591
|
+
"Int64CmpU",
|
|
592
|
+
"Int64Fmt",
|
|
593
|
+
"IntCmp",
|
|
594
|
+
"IntCmpU",
|
|
595
|
+
"IntFmt",
|
|
596
|
+
"IntOp",
|
|
597
|
+
"IntPtrCmp",
|
|
598
|
+
"IntPtrCmpU",
|
|
599
|
+
"IntPtrOp",
|
|
600
|
+
"IsWindow",
|
|
601
|
+
"LangString",
|
|
602
|
+
"LicenseBkColor",
|
|
603
|
+
"LicenseData",
|
|
604
|
+
"LicenseForceSelection",
|
|
605
|
+
"LicenseLangString",
|
|
606
|
+
"LicenseText",
|
|
607
|
+
"LoadAndSetImage",
|
|
608
|
+
"LoadLanguageFile",
|
|
609
|
+
"LockWindow",
|
|
610
|
+
"LogSet",
|
|
611
|
+
"LogText",
|
|
612
|
+
"ManifestAppendCustomString",
|
|
613
|
+
"ManifestDisableWindowFiltering",
|
|
614
|
+
"ManifestDPIAware",
|
|
615
|
+
"ManifestDPIAwareness",
|
|
616
|
+
"ManifestGdiScaling",
|
|
617
|
+
"ManifestLongPathAware",
|
|
618
|
+
"ManifestMaxVersionTested",
|
|
619
|
+
"ManifestSupportedOS",
|
|
620
|
+
"MessageBox",
|
|
621
|
+
"MiscButtonText",
|
|
622
|
+
"Name",
|
|
623
|
+
"Nop",
|
|
624
|
+
"OutFile",
|
|
625
|
+
"Page",
|
|
626
|
+
"PageCallbacks",
|
|
627
|
+
"PageEx",
|
|
628
|
+
"PageExEnd",
|
|
629
|
+
"PEAddResource",
|
|
630
|
+
"PEDllCharacteristics",
|
|
631
|
+
"PERemoveResource",
|
|
632
|
+
"PESubsysVer",
|
|
633
|
+
"Pop",
|
|
634
|
+
"Push",
|
|
635
|
+
"Quit",
|
|
636
|
+
"ReadEnvStr",
|
|
637
|
+
"ReadINIStr",
|
|
638
|
+
"ReadMemory",
|
|
639
|
+
"ReadRegDWORD",
|
|
640
|
+
"ReadRegStr",
|
|
641
|
+
"Reboot",
|
|
642
|
+
"RegDLL",
|
|
643
|
+
"Rename",
|
|
644
|
+
"RequestExecutionLevel",
|
|
645
|
+
"ReserveFile",
|
|
646
|
+
"Return",
|
|
647
|
+
"RMDir",
|
|
648
|
+
"SearchPath",
|
|
649
|
+
"Section",
|
|
650
|
+
"SectionEnd",
|
|
651
|
+
"SectionGroup",
|
|
652
|
+
"SectionGroupEnd",
|
|
653
|
+
"SectionGetFlags",
|
|
654
|
+
"SectionGetInstTypes",
|
|
655
|
+
"SectionGetSize",
|
|
656
|
+
"SectionGetText",
|
|
657
|
+
"SectionIn",
|
|
658
|
+
"SectionInstType",
|
|
659
|
+
"SectionSetFlags",
|
|
660
|
+
"SectionSetInstTypes",
|
|
661
|
+
"SectionSetSize",
|
|
662
|
+
"SectionSetText",
|
|
663
|
+
"SendMessage",
|
|
664
|
+
"SetAutoClose",
|
|
665
|
+
"SetBrandingImage",
|
|
666
|
+
"SetCompress",
|
|
667
|
+
"SetCompressionLevel",
|
|
668
|
+
"SetCompressor",
|
|
669
|
+
"SetCompressorDictSize",
|
|
670
|
+
"SetCtlColors",
|
|
671
|
+
"SetCurInstType",
|
|
672
|
+
"SetDatablockOptimize",
|
|
673
|
+
"SetDateSave",
|
|
674
|
+
"SetDetailsPrint",
|
|
675
|
+
"SetDetailsView",
|
|
676
|
+
"SetErrorLevel",
|
|
677
|
+
"SetErrors",
|
|
678
|
+
"SetFileAttributes",
|
|
679
|
+
"SetFont",
|
|
680
|
+
"SetOutPath",
|
|
681
|
+
"SetOverwrite",
|
|
682
|
+
"SetRebootFlag",
|
|
683
|
+
"SetRegView",
|
|
684
|
+
"SetShellVarContext",
|
|
685
|
+
"SetSilent",
|
|
686
|
+
"ShowInstDetails",
|
|
687
|
+
"ShowUninstDetails",
|
|
688
|
+
"ShowWindow",
|
|
689
|
+
"SilentInstall",
|
|
690
|
+
"SilentUnInstall",
|
|
691
|
+
"Sleep",
|
|
692
|
+
"SpaceTexts",
|
|
693
|
+
"StrCmp",
|
|
694
|
+
"StrCmpS",
|
|
695
|
+
"StrCpy",
|
|
696
|
+
"StrLen",
|
|
697
|
+
"SubCaption",
|
|
698
|
+
"Target",
|
|
699
|
+
"Unicode",
|
|
700
|
+
"UnsafeStrCpy",
|
|
701
|
+
"UninstallButtonText",
|
|
702
|
+
"UninstallCaption",
|
|
703
|
+
"UninstallIcon",
|
|
704
|
+
"UninstallSubCaption",
|
|
705
|
+
"UninstallText",
|
|
706
|
+
"UninstPage",
|
|
707
|
+
"UnRegDLL",
|
|
708
|
+
"Var",
|
|
709
|
+
"VIAddVersionKey",
|
|
710
|
+
"VIFileVersion",
|
|
711
|
+
"VIProductVersion",
|
|
712
|
+
"WindowIcon",
|
|
713
|
+
"WriteINIStr",
|
|
714
|
+
"WriteRegBin",
|
|
715
|
+
"WriteRegDWORD",
|
|
716
|
+
"WriteRegExpandStr",
|
|
717
|
+
"WriteRegMultiStr",
|
|
718
|
+
"WriteRegNone",
|
|
719
|
+
"WriteRegStr",
|
|
720
|
+
"WriteUninstaller",
|
|
721
|
+
"XPStyle"
|
|
722
|
+
].map((c) => ({
|
|
723
|
+
label: c,
|
|
724
|
+
type: "keyword"
|
|
725
|
+
})).concat([
|
|
726
|
+
"!addincludedir",
|
|
727
|
+
"!addplugindir",
|
|
728
|
+
"!appendfile",
|
|
729
|
+
"!appendmemfile",
|
|
730
|
+
"!assert",
|
|
731
|
+
"!cd",
|
|
732
|
+
"!define",
|
|
733
|
+
"!delfile",
|
|
734
|
+
"!echo",
|
|
735
|
+
"!else",
|
|
736
|
+
"!endif",
|
|
737
|
+
"!error",
|
|
738
|
+
"!execute",
|
|
739
|
+
"!finalize",
|
|
740
|
+
"!getdllversion",
|
|
741
|
+
"!gettlbversion",
|
|
742
|
+
"!if",
|
|
743
|
+
"!ifdef",
|
|
744
|
+
"!ifndef",
|
|
745
|
+
"!ifmacrodef",
|
|
746
|
+
"!ifmacrondef",
|
|
747
|
+
"!include",
|
|
748
|
+
"!insertmacro",
|
|
749
|
+
"!macro",
|
|
750
|
+
"!macroend",
|
|
751
|
+
"!macroundef",
|
|
752
|
+
"!makensis",
|
|
753
|
+
"!packhdr",
|
|
754
|
+
"!pragma",
|
|
755
|
+
"!searchparse",
|
|
756
|
+
"!searchreplace",
|
|
757
|
+
"!system",
|
|
758
|
+
"!tempfile",
|
|
759
|
+
"!undef",
|
|
760
|
+
"!uninstfinalize",
|
|
761
|
+
"!verbose",
|
|
762
|
+
"!warning"
|
|
763
|
+
].map((d) => ({
|
|
764
|
+
label: d,
|
|
765
|
+
type: "keyword"
|
|
766
|
+
}))));
|
|
767
|
+
function nsis() {
|
|
768
|
+
return new _codemirror_language.LanguageSupport(nsisLanguage, [nsisLanguage.data.of({ autocomplete: nsisCompletion })]);
|
|
769
|
+
}
|
|
770
|
+
//#endregion
|
|
771
|
+
exports.nsis = nsis;
|
|
772
|
+
exports.nsisLanguage = nsisLanguage;
|