@threadlabs/looma 0.18.6 → 0.19.1

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.
Files changed (220) hide show
  1. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +34 -3
  2. package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +55 -0
  3. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +7 -2
  4. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +29 -0
  5. package/components/ui-tree-item/ui-tree-item.html +5 -5
  6. package/components/ui-tree-item/ui-tree-item.js +20 -3
  7. package/dist/index.js +1 -1
  8. package/editor/chunks/extensions.js +24 -3
  9. package/editor/extensions/preset.d.ts +2 -0
  10. package/editor/extensions/table-commands.d.ts +1 -1
  11. package/editor/table-overlay.d.ts +8 -3
  12. package/package.json +2 -1
  13. package/styles/ui-editor-table-overlay.css +30 -0
  14. package/styles/ui-editor-table-toolbar.css +7 -2
  15. package/styles/ui-tree-item.css +5 -5
  16. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  17. package/vanilla/UiEditorTableOverlay.js +9 -3
  18. package/vue/UiEditorTableOverlay.d.ts +8 -0
  19. package/vue/UiEditorTableOverlay.vue +45 -2
  20. package/vue/UiEditorTableToolbar.vue +7 -2
  21. package/vue/UiTreeItem.vue +5 -5
  22. package/vue/chunks/1c.js +106 -0
  23. package/vue/chunks/UiEditorTableOverlay.js +14 -4
  24. package/vue/chunks/UiEditorTableToolbar.js +1 -1
  25. package/vue/chunks/UiTreeItem.js +1 -1
  26. package/vue/chunks/abnf.js +61 -0
  27. package/vue/chunks/accesslog.js +72 -0
  28. package/vue/chunks/actionscript.js +139 -0
  29. package/vue/chunks/ada.js +183 -0
  30. package/vue/chunks/angelscript.js +141 -0
  31. package/vue/chunks/apache.js +88 -0
  32. package/vue/chunks/applescript.js +99 -0
  33. package/vue/chunks/arcade.js +405 -0
  34. package/vue/chunks/arduino.js +871 -0
  35. package/vue/chunks/armasm.js +65 -0
  36. package/vue/chunks/asciidoc.js +181 -0
  37. package/vue/chunks/aspectj.js +202 -0
  38. package/vue/chunks/autohotkey.js +54 -0
  39. package/vue/chunks/autoit.js +132 -0
  40. package/vue/chunks/avrasm.js +46 -0
  41. package/vue/chunks/awk.js +58 -0
  42. package/vue/chunks/axapta.js +167 -0
  43. package/vue/chunks/bash.js +358 -0
  44. package/vue/chunks/basic.js +221 -0
  45. package/vue/chunks/bnf.js +27 -0
  46. package/vue/chunks/brainfuck.js +40 -0
  47. package/vue/chunks/c.js +265 -0
  48. package/vue/chunks/cal.js +136 -0
  49. package/vue/chunks/capnproto.js +86 -0
  50. package/vue/chunks/ceylon.js +125 -0
  51. package/vue/chunks/clean.js +54 -0
  52. package/vue/chunks/clojure-repl.js +17 -0
  53. package/vue/chunks/clojure.js +133 -0
  54. package/vue/chunks/cmake.js +23 -0
  55. package/vue/chunks/coffeescript.js +291 -0
  56. package/vue/chunks/coq.js +436 -0
  57. package/vue/chunks/cos.js +77 -0
  58. package/vue/chunks/cpp.js +492 -0
  59. package/vue/chunks/crmsh.js +80 -0
  60. package/vue/chunks/crystal.js +260 -0
  61. package/vue/chunks/csharp.js +376 -0
  62. package/vue/chunks/csp.js +52 -0
  63. package/vue/chunks/css.js +890 -0
  64. package/vue/chunks/d.js +184 -0
  65. package/vue/chunks/dart.js +226 -0
  66. package/vue/chunks/delphi.js +227 -0
  67. package/vue/chunks/diff.js +40 -0
  68. package/vue/chunks/django.js +43 -0
  69. package/vue/chunks/dns.js +66 -0
  70. package/vue/chunks/dockerfile.js +35 -0
  71. package/vue/chunks/dos.js +147 -0
  72. package/vue/chunks/dsconfig.js +55 -0
  73. package/vue/chunks/dts.js +119 -0
  74. package/vue/chunks/dust.js +33 -0
  75. package/vue/chunks/ebnf.js +40 -0
  76. package/vue/chunks/elixir.js +241 -0
  77. package/vue/chunks/elm.js +103 -0
  78. package/vue/chunks/erb.js +17 -0
  79. package/vue/chunks/erlang-repl.js +41 -0
  80. package/vue/chunks/erlang.js +236 -0
  81. package/vue/chunks/excel.js +562 -0
  82. package/vue/chunks/fix.js +30 -0
  83. package/vue/chunks/flix.js +60 -0
  84. package/vue/chunks/fortran.js +543 -0
  85. package/vue/chunks/fsharp.js +440 -0
  86. package/vue/chunks/gams.js +134 -0
  87. package/vue/chunks/gauss.js +167 -0
  88. package/vue/chunks/gcode.js +131 -0
  89. package/vue/chunks/gherkin.js +41 -0
  90. package/vue/chunks/glsl.js +25 -0
  91. package/vue/chunks/gml.js +3119 -0
  92. package/vue/chunks/go.js +140 -0
  93. package/vue/chunks/golo.js +72 -0
  94. package/vue/chunks/gradle.js +181 -0
  95. package/vue/chunks/graphql.js +68 -0
  96. package/vue/chunks/groovy.js +159 -0
  97. package/vue/chunks/haml.js +96 -0
  98. package/vue/chunks/handlebars.js +191 -0
  99. package/vue/chunks/haskell.js +149 -0
  100. package/vue/chunks/haxe.js +142 -0
  101. package/vue/chunks/hsp.js +45 -0
  102. package/vue/chunks/http.js +77 -0
  103. package/vue/chunks/hy.js +92 -0
  104. package/vue/chunks/inform7.js +45 -0
  105. package/vue/chunks/ini.js +94 -0
  106. package/vue/chunks/irpf90.js +52 -0
  107. package/vue/chunks/isbl.js +112 -0
  108. package/vue/chunks/java.js +237 -0
  109. package/vue/chunks/javascript.js +570 -0
  110. package/vue/chunks/jboss-cli.js +46 -0
  111. package/vue/chunks/json.js +45 -0
  112. package/vue/chunks/julia-repl.js +18 -0
  113. package/vue/chunks/julia.js +353 -0
  114. package/vue/chunks/kotlin.js +216 -0
  115. package/vue/chunks/lasso.js +127 -0
  116. package/vue/chunks/latex.js +206 -0
  117. package/vue/chunks/ldif.js +25 -0
  118. package/vue/chunks/leaf.js +72 -0
  119. package/vue/chunks/less.js +953 -0
  120. package/vue/chunks/lisp.js +119 -0
  121. package/vue/chunks/livecodeserver.js +86 -0
  122. package/vue/chunks/livescript.js +309 -0
  123. package/vue/chunks/llvm.js +77 -0
  124. package/vue/chunks/lsl.js +55 -0
  125. package/vue/chunks/lua.js +49 -0
  126. package/vue/chunks/makefile.js +62 -0
  127. package/vue/chunks/markdown.js +194 -0
  128. package/vue/chunks/mathematica.js +7317 -0
  129. package/vue/chunks/matlab.js +70 -0
  130. package/vue/chunks/maxima.js +38 -0
  131. package/vue/chunks/mel.js +24 -0
  132. package/vue/chunks/mercury.js +62 -0
  133. package/vue/chunks/mipsasm.js +53 -0
  134. package/vue/chunks/mizar.js +10 -0
  135. package/vue/chunks/mojolicious.js +27 -0
  136. package/vue/chunks/monkey.js +158 -0
  137. package/vue/chunks/moonscript.js +102 -0
  138. package/vue/chunks/n1ql.js +346 -0
  139. package/vue/chunks/nestedtext.js +66 -0
  140. package/vue/chunks/nginx.js +127 -0
  141. package/vue/chunks/nim.js +174 -0
  142. package/vue/chunks/nix.js +334 -0
  143. package/vue/chunks/node-repl.js +20 -0
  144. package/vue/chunks/nsis.js +515 -0
  145. package/vue/chunks/objectivec.js +235 -0
  146. package/vue/chunks/ocaml.js +52 -0
  147. package/vue/chunks/openscad.js +66 -0
  148. package/vue/chunks/oxygene.js +58 -0
  149. package/vue/chunks/parser3.js +40 -0
  150. package/vue/chunks/perl.js +454 -0
  151. package/vue/chunks/pf.js +30 -0
  152. package/vue/chunks/pgsql.js +196 -0
  153. package/vue/chunks/php-template.js +43 -0
  154. package/vue/chunks/php.js +527 -0
  155. package/vue/chunks/plaintext.js +10 -0
  156. package/vue/chunks/pony.js +60 -0
  157. package/vue/chunks/powershell.js +208 -0
  158. package/vue/chunks/processing.js +407 -0
  159. package/vue/chunks/profile.js +38 -0
  160. package/vue/chunks/prolog.js +62 -0
  161. package/vue/chunks/properties.js +45 -0
  162. package/vue/chunks/protobuf.js +63 -0
  163. package/vue/chunks/puppet.js +87 -0
  164. package/vue/chunks/purebasic.js +42 -0
  165. package/vue/chunks/python-repl.js +19 -0
  166. package/vue/chunks/python.js +357 -0
  167. package/vue/chunks/q.js +21 -0
  168. package/vue/chunks/qml.js +134 -0
  169. package/vue/chunks/r.js +145 -0
  170. package/vue/chunks/reasonml.js +134 -0
  171. package/vue/chunks/rib.js +16 -0
  172. package/vue/chunks/roboconf.js +54 -0
  173. package/vue/chunks/routeros.js +109 -0
  174. package/vue/chunks/rsl.js +138 -0
  175. package/vue/chunks/ruby.js +322 -0
  176. package/vue/chunks/ruleslanguage.js +26 -0
  177. package/vue/chunks/rust.js +296 -0
  178. package/vue/chunks/sas.js +533 -0
  179. package/vue/chunks/scala.js +173 -0
  180. package/vue/chunks/scheme.js +118 -0
  181. package/vue/chunks/scilab.js +45 -0
  182. package/vue/chunks/scss.js +900 -0
  183. package/vue/chunks/shell.js +18 -0
  184. package/vue/chunks/smali.js +113 -0
  185. package/vue/chunks/smalltalk.js +59 -0
  186. package/vue/chunks/sml.js +49 -0
  187. package/vue/chunks/sqf.js +2599 -0
  188. package/vue/chunks/sql.js +624 -0
  189. package/vue/chunks/stan.js +471 -0
  190. package/vue/chunks/stata.js +33 -0
  191. package/vue/chunks/step21.js +53 -0
  192. package/vue/chunks/stylus.js +925 -0
  193. package/vue/chunks/subunit.js +34 -0
  194. package/vue/chunks/swift.js +699 -0
  195. package/vue/chunks/taggerscript.js +37 -0
  196. package/vue/chunks/tap.js +30 -0
  197. package/vue/chunks/tcl.js +165 -0
  198. package/vue/chunks/thrift.js +65 -0
  199. package/vue/chunks/tp.js +155 -0
  200. package/vue/chunks/twig.js +232 -0
  201. package/vue/chunks/typescript.js +672 -0
  202. package/vue/chunks/vala.js +39 -0
  203. package/vue/chunks/vbnet.js +86 -0
  204. package/vue/chunks/vbscript-html.js +14 -0
  205. package/vue/chunks/vbscript.js +200 -0
  206. package/vue/chunks/verilog.js +534 -0
  207. package/vue/chunks/vhdl.js +190 -0
  208. package/vue/chunks/vim.js +54 -0
  209. package/vue/chunks/wasm.js +111 -0
  210. package/vue/chunks/wren.js +229 -0
  211. package/vue/chunks/x86asm.js +64 -0
  212. package/vue/chunks/xl.js +192 -0
  213. package/vue/chunks/xml.js +175 -0
  214. package/vue/chunks/xquery.js +303 -0
  215. package/vue/chunks/yaml.js +159 -0
  216. package/vue/chunks/zephir.js +74 -0
  217. package/vue/components.css +204 -170
  218. package/vue/editor/LoomaEditor.d.ts +7 -7
  219. package/vue/editor/code-language-catalog.d.ts +196 -0
  220. package/vue/editor/index.js +290 -20
@@ -0,0 +1,515 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/nsis.js
2
+ function nsis(hljs) {
3
+ const regex = hljs.regex;
4
+ const LANGUAGE_CONSTANTS = [
5
+ "ADMINTOOLS",
6
+ "APPDATA",
7
+ "CDBURN_AREA",
8
+ "CMDLINE",
9
+ "COMMONFILES32",
10
+ "COMMONFILES64",
11
+ "COMMONFILES",
12
+ "COOKIES",
13
+ "DESKTOP",
14
+ "DOCUMENTS",
15
+ "EXEDIR",
16
+ "EXEFILE",
17
+ "EXEPATH",
18
+ "FAVORITES",
19
+ "FONTS",
20
+ "HISTORY",
21
+ "HWNDPARENT",
22
+ "INSTDIR",
23
+ "INTERNET_CACHE",
24
+ "LANGUAGE",
25
+ "LOCALAPPDATA",
26
+ "MUSIC",
27
+ "NETHOOD",
28
+ "OUTDIR",
29
+ "PICTURES",
30
+ "PLUGINSDIR",
31
+ "PRINTHOOD",
32
+ "PROFILE",
33
+ "PROGRAMFILES32",
34
+ "PROGRAMFILES64",
35
+ "PROGRAMFILES",
36
+ "QUICKLAUNCH",
37
+ "RECENT",
38
+ "RESOURCES_LOCALIZED",
39
+ "RESOURCES",
40
+ "SENDTO",
41
+ "SMPROGRAMS",
42
+ "SMSTARTUP",
43
+ "STARTMENU",
44
+ "SYSDIR",
45
+ "TEMP",
46
+ "TEMPLATES",
47
+ "VIDEOS",
48
+ "WINDIR"
49
+ ];
50
+ const PARAM_NAMES = [
51
+ "ARCHIVE",
52
+ "FILE_ATTRIBUTE_ARCHIVE",
53
+ "FILE_ATTRIBUTE_NORMAL",
54
+ "FILE_ATTRIBUTE_OFFLINE",
55
+ "FILE_ATTRIBUTE_READONLY",
56
+ "FILE_ATTRIBUTE_SYSTEM",
57
+ "FILE_ATTRIBUTE_TEMPORARY",
58
+ "HKCR",
59
+ "HKCU",
60
+ "HKDD",
61
+ "HKEY_CLASSES_ROOT",
62
+ "HKEY_CURRENT_CONFIG",
63
+ "HKEY_CURRENT_USER",
64
+ "HKEY_DYN_DATA",
65
+ "HKEY_LOCAL_MACHINE",
66
+ "HKEY_PERFORMANCE_DATA",
67
+ "HKEY_USERS",
68
+ "HKLM",
69
+ "HKPD",
70
+ "HKU",
71
+ "IDABORT",
72
+ "IDCANCEL",
73
+ "IDIGNORE",
74
+ "IDNO",
75
+ "IDOK",
76
+ "IDRETRY",
77
+ "IDYES",
78
+ "MB_ABORTRETRYIGNORE",
79
+ "MB_DEFBUTTON1",
80
+ "MB_DEFBUTTON2",
81
+ "MB_DEFBUTTON3",
82
+ "MB_DEFBUTTON4",
83
+ "MB_ICONEXCLAMATION",
84
+ "MB_ICONINFORMATION",
85
+ "MB_ICONQUESTION",
86
+ "MB_ICONSTOP",
87
+ "MB_OK",
88
+ "MB_OKCANCEL",
89
+ "MB_RETRYCANCEL",
90
+ "MB_RIGHT",
91
+ "MB_RTLREADING",
92
+ "MB_SETFOREGROUND",
93
+ "MB_TOPMOST",
94
+ "MB_USERICON",
95
+ "MB_YESNO",
96
+ "NORMAL",
97
+ "OFFLINE",
98
+ "READONLY",
99
+ "SHCTX",
100
+ "SHELL_CONTEXT",
101
+ "SYSTEM|TEMPORARY"
102
+ ];
103
+ const COMPILER_FLAGS = [
104
+ "addincludedir",
105
+ "addplugindir",
106
+ "appendfile",
107
+ "assert",
108
+ "cd",
109
+ "define",
110
+ "delfile",
111
+ "echo",
112
+ "else",
113
+ "endif",
114
+ "error",
115
+ "execute",
116
+ "finalize",
117
+ "getdllversion",
118
+ "gettlbversion",
119
+ "if",
120
+ "ifdef",
121
+ "ifmacrodef",
122
+ "ifmacrondef",
123
+ "ifndef",
124
+ "include",
125
+ "insertmacro",
126
+ "macro",
127
+ "macroend",
128
+ "makensis",
129
+ "packhdr",
130
+ "searchparse",
131
+ "searchreplace",
132
+ "system",
133
+ "tempfile",
134
+ "undef",
135
+ "uninstfinalize",
136
+ "verbose",
137
+ "warning"
138
+ ];
139
+ const CONSTANTS = {
140
+ className: "variable.constant",
141
+ begin: regex.concat(/\$/, regex.either(...LANGUAGE_CONSTANTS))
142
+ };
143
+ const DEFINES = {
144
+ className: "variable",
145
+ begin: /\$+\{[\!\w.:-]+\}/
146
+ };
147
+ const VARIABLES = {
148
+ className: "variable",
149
+ begin: /\$+\w[\w\.]*/,
150
+ illegal: /\(\)\{\}/
151
+ };
152
+ const LANGUAGES = {
153
+ className: "variable",
154
+ begin: /\$+\([\w^.:!-]+\)/
155
+ };
156
+ const PARAMETERS = {
157
+ className: "params",
158
+ begin: regex.either(...PARAM_NAMES)
159
+ };
160
+ const COMPILER = {
161
+ className: "keyword",
162
+ begin: regex.concat(/!/, regex.either(...COMPILER_FLAGS))
163
+ };
164
+ const ESCAPE_CHARS = {
165
+ className: "char.escape",
166
+ begin: /\$(\\[nrt]|\$)/
167
+ };
168
+ const PLUGINS = {
169
+ className: "title.function",
170
+ begin: /\w+::\w+/
171
+ };
172
+ const STRING = {
173
+ className: "string",
174
+ variants: [
175
+ {
176
+ begin: "\"",
177
+ end: "\""
178
+ },
179
+ {
180
+ begin: "'",
181
+ end: "'"
182
+ },
183
+ {
184
+ begin: "`",
185
+ end: "`"
186
+ }
187
+ ],
188
+ illegal: /\n/,
189
+ contains: [
190
+ ESCAPE_CHARS,
191
+ CONSTANTS,
192
+ DEFINES,
193
+ VARIABLES,
194
+ LANGUAGES
195
+ ]
196
+ };
197
+ const KEYWORDS = [
198
+ "Abort",
199
+ "AddBrandingImage",
200
+ "AddSize",
201
+ "AllowRootDirInstall",
202
+ "AllowSkipFiles",
203
+ "AutoCloseWindow",
204
+ "BGFont",
205
+ "BGGradient",
206
+ "BrandingText",
207
+ "BringToFront",
208
+ "Call",
209
+ "CallInstDLL",
210
+ "Caption",
211
+ "ChangeUI",
212
+ "CheckBitmap",
213
+ "ClearErrors",
214
+ "CompletedText",
215
+ "ComponentText",
216
+ "CopyFiles",
217
+ "CRCCheck",
218
+ "CreateDirectory",
219
+ "CreateFont",
220
+ "CreateShortCut",
221
+ "Delete",
222
+ "DeleteINISec",
223
+ "DeleteINIStr",
224
+ "DeleteRegKey",
225
+ "DeleteRegValue",
226
+ "DetailPrint",
227
+ "DetailsButtonText",
228
+ "DirText",
229
+ "DirVar",
230
+ "DirVerify",
231
+ "EnableWindow",
232
+ "EnumRegKey",
233
+ "EnumRegValue",
234
+ "Exch",
235
+ "Exec",
236
+ "ExecShell",
237
+ "ExecShellWait",
238
+ "ExecWait",
239
+ "ExpandEnvStrings",
240
+ "File",
241
+ "FileBufSize",
242
+ "FileClose",
243
+ "FileErrorText",
244
+ "FileOpen",
245
+ "FileRead",
246
+ "FileReadByte",
247
+ "FileReadUTF16LE",
248
+ "FileReadWord",
249
+ "FileWriteUTF16LE",
250
+ "FileSeek",
251
+ "FileWrite",
252
+ "FileWriteByte",
253
+ "FileWriteWord",
254
+ "FindClose",
255
+ "FindFirst",
256
+ "FindNext",
257
+ "FindWindow",
258
+ "FlushINI",
259
+ "GetCurInstType",
260
+ "GetCurrentAddress",
261
+ "GetDlgItem",
262
+ "GetDLLVersion",
263
+ "GetDLLVersionLocal",
264
+ "GetErrorLevel",
265
+ "GetFileTime",
266
+ "GetFileTimeLocal",
267
+ "GetFullPathName",
268
+ "GetFunctionAddress",
269
+ "GetInstDirError",
270
+ "GetKnownFolderPath",
271
+ "GetLabelAddress",
272
+ "GetTempFileName",
273
+ "GetWinVer",
274
+ "Goto",
275
+ "HideWindow",
276
+ "Icon",
277
+ "IfAbort",
278
+ "IfErrors",
279
+ "IfFileExists",
280
+ "IfRebootFlag",
281
+ "IfRtlLanguage",
282
+ "IfShellVarContextAll",
283
+ "IfSilent",
284
+ "InitPluginsDir",
285
+ "InstallButtonText",
286
+ "InstallColors",
287
+ "InstallDir",
288
+ "InstallDirRegKey",
289
+ "InstProgressFlags",
290
+ "InstType",
291
+ "InstTypeGetText",
292
+ "InstTypeSetText",
293
+ "Int64Cmp",
294
+ "Int64CmpU",
295
+ "Int64Fmt",
296
+ "IntCmp",
297
+ "IntCmpU",
298
+ "IntFmt",
299
+ "IntOp",
300
+ "IntPtrCmp",
301
+ "IntPtrCmpU",
302
+ "IntPtrOp",
303
+ "IsWindow",
304
+ "LangString",
305
+ "LicenseBkColor",
306
+ "LicenseData",
307
+ "LicenseForceSelection",
308
+ "LicenseLangString",
309
+ "LicenseText",
310
+ "LoadAndSetImage",
311
+ "LoadLanguageFile",
312
+ "LockWindow",
313
+ "LogSet",
314
+ "LogText",
315
+ "ManifestDPIAware",
316
+ "ManifestLongPathAware",
317
+ "ManifestMaxVersionTested",
318
+ "ManifestSupportedOS",
319
+ "MessageBox",
320
+ "MiscButtonText",
321
+ "Name|0",
322
+ "Nop",
323
+ "OutFile",
324
+ "Page",
325
+ "PageCallbacks",
326
+ "PEAddResource",
327
+ "PEDllCharacteristics",
328
+ "PERemoveResource",
329
+ "PESubsysVer",
330
+ "Pop",
331
+ "Push",
332
+ "Quit",
333
+ "ReadEnvStr",
334
+ "ReadINIStr",
335
+ "ReadRegDWORD",
336
+ "ReadRegStr",
337
+ "Reboot",
338
+ "RegDLL",
339
+ "Rename",
340
+ "RequestExecutionLevel",
341
+ "ReserveFile",
342
+ "Return",
343
+ "RMDir",
344
+ "SearchPath",
345
+ "SectionGetFlags",
346
+ "SectionGetInstTypes",
347
+ "SectionGetSize",
348
+ "SectionGetText",
349
+ "SectionIn",
350
+ "SectionSetFlags",
351
+ "SectionSetInstTypes",
352
+ "SectionSetSize",
353
+ "SectionSetText",
354
+ "SendMessage",
355
+ "SetAutoClose",
356
+ "SetBrandingImage",
357
+ "SetCompress",
358
+ "SetCompressor",
359
+ "SetCompressorDictSize",
360
+ "SetCtlColors",
361
+ "SetCurInstType",
362
+ "SetDatablockOptimize",
363
+ "SetDateSave",
364
+ "SetDetailsPrint",
365
+ "SetDetailsView",
366
+ "SetErrorLevel",
367
+ "SetErrors",
368
+ "SetFileAttributes",
369
+ "SetFont",
370
+ "SetOutPath",
371
+ "SetOverwrite",
372
+ "SetRebootFlag",
373
+ "SetRegView",
374
+ "SetShellVarContext",
375
+ "SetSilent",
376
+ "ShowInstDetails",
377
+ "ShowUninstDetails",
378
+ "ShowWindow",
379
+ "SilentInstall",
380
+ "SilentUnInstall",
381
+ "Sleep",
382
+ "SpaceTexts",
383
+ "StrCmp",
384
+ "StrCmpS",
385
+ "StrCpy",
386
+ "StrLen",
387
+ "SubCaption",
388
+ "Unicode",
389
+ "UninstallButtonText",
390
+ "UninstallCaption",
391
+ "UninstallIcon",
392
+ "UninstallSubCaption",
393
+ "UninstallText",
394
+ "UninstPage",
395
+ "UnRegDLL",
396
+ "Var",
397
+ "VIAddVersionKey",
398
+ "VIFileVersion",
399
+ "VIProductVersion",
400
+ "WindowIcon",
401
+ "WriteINIStr",
402
+ "WriteRegBin",
403
+ "WriteRegDWORD",
404
+ "WriteRegExpandStr",
405
+ "WriteRegMultiStr",
406
+ "WriteRegNone",
407
+ "WriteRegStr",
408
+ "WriteUninstaller",
409
+ "XPStyle"
410
+ ];
411
+ const LITERALS = [
412
+ "admin",
413
+ "all",
414
+ "auto",
415
+ "both",
416
+ "bottom",
417
+ "bzip2",
418
+ "colored",
419
+ "components",
420
+ "current",
421
+ "custom",
422
+ "directory",
423
+ "false",
424
+ "force",
425
+ "hide",
426
+ "highest",
427
+ "ifdiff",
428
+ "ifnewer",
429
+ "instfiles",
430
+ "lastused",
431
+ "leave",
432
+ "left",
433
+ "license",
434
+ "listonly",
435
+ "lzma",
436
+ "nevershow",
437
+ "none",
438
+ "normal",
439
+ "notset",
440
+ "off",
441
+ "on",
442
+ "open",
443
+ "print",
444
+ "right",
445
+ "show",
446
+ "silent",
447
+ "silentlog",
448
+ "smooth",
449
+ "textonly",
450
+ "top",
451
+ "true",
452
+ "try",
453
+ "un.components",
454
+ "un.custom",
455
+ "un.directory",
456
+ "un.instfiles",
457
+ "un.license",
458
+ "uninstConfirm",
459
+ "user",
460
+ "Win10",
461
+ "Win7",
462
+ "Win8",
463
+ "WinVista",
464
+ "zlib"
465
+ ];
466
+ const FUNCTION_DEFINITION = {
467
+ match: [
468
+ /Function/,
469
+ /\s+/,
470
+ regex.concat(/(\.)?/, hljs.IDENT_RE)
471
+ ],
472
+ scope: {
473
+ 1: "keyword",
474
+ 3: "title.function"
475
+ }
476
+ };
477
+ return {
478
+ name: "NSIS",
479
+ case_insensitive: true,
480
+ keywords: {
481
+ keyword: KEYWORDS,
482
+ literal: LITERALS
483
+ },
484
+ contains: [
485
+ hljs.HASH_COMMENT_MODE,
486
+ hljs.C_BLOCK_COMMENT_MODE,
487
+ hljs.COMMENT(";", "$", { relevance: 0 }),
488
+ {
489
+ match: [
490
+ /Var/,
491
+ /\s+/,
492
+ /(?:\/GLOBAL\s+)?/,
493
+ /[A-Za-z][\w.]*/
494
+ ],
495
+ scope: {
496
+ 1: "keyword",
497
+ 3: "params",
498
+ 4: "variable"
499
+ }
500
+ },
501
+ FUNCTION_DEFINITION,
502
+ { beginKeywords: "Function PageEx Section SectionGroup FunctionEnd SectionEnd" },
503
+ STRING,
504
+ COMPILER,
505
+ DEFINES,
506
+ VARIABLES,
507
+ LANGUAGES,
508
+ PARAMETERS,
509
+ PLUGINS,
510
+ hljs.NUMBER_MODE
511
+ ]
512
+ };
513
+ }
514
+ //#endregion
515
+ export { nsis as default };