@threadlabs/looma 0.18.5 → 0.19.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/components/ui-editor-table-overlay/ui-editor-table-overlay.html +34 -3
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +55 -0
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +7 -2
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +29 -0
- package/dist/index.js +1 -1
- package/editor/chunks/extensions.js +39 -3
- package/editor/extensions/preset.d.ts +2 -0
- package/editor/extensions/table-commands.d.ts +1 -1
- package/editor/table-overlay.d.ts +8 -3
- package/package.json +2 -1
- package/styles/ui-editor-table-overlay.css +30 -0
- package/styles/ui-editor-table-toolbar.css +7 -2
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +9 -3
- package/vue/UiEditorTableOverlay.d.ts +8 -0
- package/vue/UiEditorTableOverlay.vue +45 -2
- package/vue/UiEditorTableToolbar.vue +7 -2
- package/vue/chunks/1c.js +106 -0
- package/vue/chunks/UiEditorTableOverlay.js +14 -4
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/abnf.js +61 -0
- package/vue/chunks/accesslog.js +72 -0
- package/vue/chunks/actionscript.js +139 -0
- package/vue/chunks/ada.js +183 -0
- package/vue/chunks/angelscript.js +141 -0
- package/vue/chunks/apache.js +88 -0
- package/vue/chunks/applescript.js +99 -0
- package/vue/chunks/arcade.js +405 -0
- package/vue/chunks/arduino.js +871 -0
- package/vue/chunks/armasm.js +65 -0
- package/vue/chunks/asciidoc.js +181 -0
- package/vue/chunks/aspectj.js +202 -0
- package/vue/chunks/autohotkey.js +54 -0
- package/vue/chunks/autoit.js +132 -0
- package/vue/chunks/avrasm.js +46 -0
- package/vue/chunks/awk.js +58 -0
- package/vue/chunks/axapta.js +167 -0
- package/vue/chunks/bash.js +358 -0
- package/vue/chunks/basic.js +221 -0
- package/vue/chunks/bnf.js +27 -0
- package/vue/chunks/brainfuck.js +40 -0
- package/vue/chunks/c.js +265 -0
- package/vue/chunks/cal.js +136 -0
- package/vue/chunks/capnproto.js +86 -0
- package/vue/chunks/ceylon.js +125 -0
- package/vue/chunks/clean.js +54 -0
- package/vue/chunks/clojure-repl.js +17 -0
- package/vue/chunks/clojure.js +133 -0
- package/vue/chunks/cmake.js +23 -0
- package/vue/chunks/coffeescript.js +291 -0
- package/vue/chunks/coq.js +436 -0
- package/vue/chunks/cos.js +77 -0
- package/vue/chunks/cpp.js +492 -0
- package/vue/chunks/crmsh.js +80 -0
- package/vue/chunks/crystal.js +260 -0
- package/vue/chunks/csharp.js +376 -0
- package/vue/chunks/csp.js +52 -0
- package/vue/chunks/css.js +890 -0
- package/vue/chunks/d.js +184 -0
- package/vue/chunks/dart.js +226 -0
- package/vue/chunks/delphi.js +227 -0
- package/vue/chunks/diff.js +40 -0
- package/vue/chunks/django.js +43 -0
- package/vue/chunks/dns.js +66 -0
- package/vue/chunks/dockerfile.js +35 -0
- package/vue/chunks/dos.js +147 -0
- package/vue/chunks/dsconfig.js +55 -0
- package/vue/chunks/dts.js +119 -0
- package/vue/chunks/dust.js +33 -0
- package/vue/chunks/ebnf.js +40 -0
- package/vue/chunks/elixir.js +241 -0
- package/vue/chunks/elm.js +103 -0
- package/vue/chunks/erb.js +17 -0
- package/vue/chunks/erlang-repl.js +41 -0
- package/vue/chunks/erlang.js +236 -0
- package/vue/chunks/excel.js +562 -0
- package/vue/chunks/fix.js +30 -0
- package/vue/chunks/flix.js +60 -0
- package/vue/chunks/fortran.js +543 -0
- package/vue/chunks/fsharp.js +440 -0
- package/vue/chunks/gams.js +134 -0
- package/vue/chunks/gauss.js +167 -0
- package/vue/chunks/gcode.js +131 -0
- package/vue/chunks/gherkin.js +41 -0
- package/vue/chunks/glsl.js +25 -0
- package/vue/chunks/gml.js +3119 -0
- package/vue/chunks/go.js +140 -0
- package/vue/chunks/golo.js +72 -0
- package/vue/chunks/gradle.js +181 -0
- package/vue/chunks/graphql.js +68 -0
- package/vue/chunks/groovy.js +159 -0
- package/vue/chunks/haml.js +96 -0
- package/vue/chunks/handlebars.js +191 -0
- package/vue/chunks/haskell.js +149 -0
- package/vue/chunks/haxe.js +142 -0
- package/vue/chunks/hsp.js +45 -0
- package/vue/chunks/http.js +77 -0
- package/vue/chunks/hy.js +92 -0
- package/vue/chunks/inform7.js +45 -0
- package/vue/chunks/ini.js +94 -0
- package/vue/chunks/irpf90.js +52 -0
- package/vue/chunks/isbl.js +112 -0
- package/vue/chunks/java.js +237 -0
- package/vue/chunks/javascript.js +570 -0
- package/vue/chunks/jboss-cli.js +46 -0
- package/vue/chunks/json.js +45 -0
- package/vue/chunks/julia-repl.js +18 -0
- package/vue/chunks/julia.js +353 -0
- package/vue/chunks/kotlin.js +216 -0
- package/vue/chunks/lasso.js +127 -0
- package/vue/chunks/latex.js +206 -0
- package/vue/chunks/ldif.js +25 -0
- package/vue/chunks/leaf.js +72 -0
- package/vue/chunks/less.js +953 -0
- package/vue/chunks/lisp.js +119 -0
- package/vue/chunks/livecodeserver.js +86 -0
- package/vue/chunks/livescript.js +309 -0
- package/vue/chunks/llvm.js +77 -0
- package/vue/chunks/lsl.js +55 -0
- package/vue/chunks/lua.js +49 -0
- package/vue/chunks/makefile.js +62 -0
- package/vue/chunks/markdown.js +194 -0
- package/vue/chunks/mathematica.js +7317 -0
- package/vue/chunks/matlab.js +70 -0
- package/vue/chunks/maxima.js +38 -0
- package/vue/chunks/mel.js +24 -0
- package/vue/chunks/mercury.js +62 -0
- package/vue/chunks/mipsasm.js +53 -0
- package/vue/chunks/mizar.js +10 -0
- package/vue/chunks/mojolicious.js +27 -0
- package/vue/chunks/monkey.js +158 -0
- package/vue/chunks/moonscript.js +102 -0
- package/vue/chunks/n1ql.js +346 -0
- package/vue/chunks/nestedtext.js +66 -0
- package/vue/chunks/nginx.js +127 -0
- package/vue/chunks/nim.js +174 -0
- package/vue/chunks/nix.js +334 -0
- package/vue/chunks/node-repl.js +20 -0
- package/vue/chunks/nsis.js +515 -0
- package/vue/chunks/objectivec.js +235 -0
- package/vue/chunks/ocaml.js +52 -0
- package/vue/chunks/openscad.js +66 -0
- package/vue/chunks/oxygene.js +58 -0
- package/vue/chunks/parser3.js +40 -0
- package/vue/chunks/perl.js +454 -0
- package/vue/chunks/pf.js +30 -0
- package/vue/chunks/pgsql.js +196 -0
- package/vue/chunks/php-template.js +43 -0
- package/vue/chunks/php.js +527 -0
- package/vue/chunks/plaintext.js +10 -0
- package/vue/chunks/pony.js +60 -0
- package/vue/chunks/powershell.js +208 -0
- package/vue/chunks/processing.js +407 -0
- package/vue/chunks/profile.js +38 -0
- package/vue/chunks/prolog.js +62 -0
- package/vue/chunks/properties.js +45 -0
- package/vue/chunks/protobuf.js +63 -0
- package/vue/chunks/puppet.js +87 -0
- package/vue/chunks/purebasic.js +42 -0
- package/vue/chunks/python-repl.js +19 -0
- package/vue/chunks/python.js +357 -0
- package/vue/chunks/q.js +21 -0
- package/vue/chunks/qml.js +134 -0
- package/vue/chunks/r.js +145 -0
- package/vue/chunks/reasonml.js +134 -0
- package/vue/chunks/rib.js +16 -0
- package/vue/chunks/roboconf.js +54 -0
- package/vue/chunks/routeros.js +109 -0
- package/vue/chunks/rsl.js +138 -0
- package/vue/chunks/ruby.js +322 -0
- package/vue/chunks/ruleslanguage.js +26 -0
- package/vue/chunks/rust.js +296 -0
- package/vue/chunks/sas.js +533 -0
- package/vue/chunks/scala.js +173 -0
- package/vue/chunks/scheme.js +118 -0
- package/vue/chunks/scilab.js +45 -0
- package/vue/chunks/scss.js +900 -0
- package/vue/chunks/shell.js +18 -0
- package/vue/chunks/smali.js +113 -0
- package/vue/chunks/smalltalk.js +59 -0
- package/vue/chunks/sml.js +49 -0
- package/vue/chunks/sqf.js +2599 -0
- package/vue/chunks/sql.js +624 -0
- package/vue/chunks/stan.js +471 -0
- package/vue/chunks/stata.js +33 -0
- package/vue/chunks/step21.js +53 -0
- package/vue/chunks/stylus.js +925 -0
- package/vue/chunks/subunit.js +34 -0
- package/vue/chunks/swift.js +699 -0
- package/vue/chunks/taggerscript.js +37 -0
- package/vue/chunks/tap.js +30 -0
- package/vue/chunks/tcl.js +165 -0
- package/vue/chunks/thrift.js +65 -0
- package/vue/chunks/tp.js +155 -0
- package/vue/chunks/twig.js +232 -0
- package/vue/chunks/typescript.js +672 -0
- package/vue/chunks/vala.js +39 -0
- package/vue/chunks/vbnet.js +86 -0
- package/vue/chunks/vbscript-html.js +14 -0
- package/vue/chunks/vbscript.js +200 -0
- package/vue/chunks/verilog.js +534 -0
- package/vue/chunks/vhdl.js +190 -0
- package/vue/chunks/vim.js +54 -0
- package/vue/chunks/wasm.js +111 -0
- package/vue/chunks/wren.js +229 -0
- package/vue/chunks/x86asm.js +64 -0
- package/vue/chunks/xl.js +192 -0
- package/vue/chunks/xml.js +175 -0
- package/vue/chunks/xquery.js +303 -0
- package/vue/chunks/yaml.js +159 -0
- package/vue/chunks/zephir.js +74 -0
- package/vue/components.css +119 -85
- package/vue/editor/LoomaEditor.d.ts +7 -7
- package/vue/editor/code-language-catalog.d.ts +196 -0
- package/vue/editor/index.js +290 -20
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/sas.js
|
|
2
|
+
/** @type LanguageFn */
|
|
3
|
+
function sas(hljs) {
|
|
4
|
+
const regex = hljs.regex;
|
|
5
|
+
const SAS_KEYWORDS = [
|
|
6
|
+
"do",
|
|
7
|
+
"if",
|
|
8
|
+
"then",
|
|
9
|
+
"else",
|
|
10
|
+
"end",
|
|
11
|
+
"until",
|
|
12
|
+
"while",
|
|
13
|
+
"abort",
|
|
14
|
+
"array",
|
|
15
|
+
"attrib",
|
|
16
|
+
"by",
|
|
17
|
+
"call",
|
|
18
|
+
"cards",
|
|
19
|
+
"cards4",
|
|
20
|
+
"catname",
|
|
21
|
+
"continue",
|
|
22
|
+
"datalines",
|
|
23
|
+
"datalines4",
|
|
24
|
+
"delete",
|
|
25
|
+
"delim",
|
|
26
|
+
"delimiter",
|
|
27
|
+
"display",
|
|
28
|
+
"dm",
|
|
29
|
+
"drop",
|
|
30
|
+
"endsas",
|
|
31
|
+
"error",
|
|
32
|
+
"file",
|
|
33
|
+
"filename",
|
|
34
|
+
"footnote",
|
|
35
|
+
"format",
|
|
36
|
+
"goto",
|
|
37
|
+
"in",
|
|
38
|
+
"infile",
|
|
39
|
+
"informat",
|
|
40
|
+
"input",
|
|
41
|
+
"keep",
|
|
42
|
+
"label",
|
|
43
|
+
"leave",
|
|
44
|
+
"length",
|
|
45
|
+
"libname",
|
|
46
|
+
"link",
|
|
47
|
+
"list",
|
|
48
|
+
"lostcard",
|
|
49
|
+
"merge",
|
|
50
|
+
"missing",
|
|
51
|
+
"modify",
|
|
52
|
+
"options",
|
|
53
|
+
"output",
|
|
54
|
+
"out",
|
|
55
|
+
"page",
|
|
56
|
+
"put",
|
|
57
|
+
"redirect",
|
|
58
|
+
"remove",
|
|
59
|
+
"rename",
|
|
60
|
+
"replace",
|
|
61
|
+
"retain",
|
|
62
|
+
"return",
|
|
63
|
+
"select",
|
|
64
|
+
"set",
|
|
65
|
+
"skip",
|
|
66
|
+
"startsas",
|
|
67
|
+
"stop",
|
|
68
|
+
"title",
|
|
69
|
+
"update",
|
|
70
|
+
"waitsas",
|
|
71
|
+
"where",
|
|
72
|
+
"window",
|
|
73
|
+
"x|0",
|
|
74
|
+
"systask",
|
|
75
|
+
"add",
|
|
76
|
+
"and",
|
|
77
|
+
"alter",
|
|
78
|
+
"as",
|
|
79
|
+
"cascade",
|
|
80
|
+
"check",
|
|
81
|
+
"create",
|
|
82
|
+
"delete",
|
|
83
|
+
"describe",
|
|
84
|
+
"distinct",
|
|
85
|
+
"drop",
|
|
86
|
+
"foreign",
|
|
87
|
+
"from",
|
|
88
|
+
"group",
|
|
89
|
+
"having",
|
|
90
|
+
"index",
|
|
91
|
+
"insert",
|
|
92
|
+
"into",
|
|
93
|
+
"in",
|
|
94
|
+
"key",
|
|
95
|
+
"like",
|
|
96
|
+
"message",
|
|
97
|
+
"modify",
|
|
98
|
+
"msgtype",
|
|
99
|
+
"not",
|
|
100
|
+
"null",
|
|
101
|
+
"on",
|
|
102
|
+
"or",
|
|
103
|
+
"order",
|
|
104
|
+
"primary",
|
|
105
|
+
"references",
|
|
106
|
+
"reset",
|
|
107
|
+
"restrict",
|
|
108
|
+
"select",
|
|
109
|
+
"set",
|
|
110
|
+
"table",
|
|
111
|
+
"unique",
|
|
112
|
+
"update",
|
|
113
|
+
"validate",
|
|
114
|
+
"view",
|
|
115
|
+
"where"
|
|
116
|
+
];
|
|
117
|
+
const FUNCTIONS = [
|
|
118
|
+
"abs",
|
|
119
|
+
"addr",
|
|
120
|
+
"airy",
|
|
121
|
+
"arcos",
|
|
122
|
+
"arsin",
|
|
123
|
+
"atan",
|
|
124
|
+
"attrc",
|
|
125
|
+
"attrn",
|
|
126
|
+
"band",
|
|
127
|
+
"betainv",
|
|
128
|
+
"blshift",
|
|
129
|
+
"bnot",
|
|
130
|
+
"bor",
|
|
131
|
+
"brshift",
|
|
132
|
+
"bxor",
|
|
133
|
+
"byte",
|
|
134
|
+
"cdf",
|
|
135
|
+
"ceil",
|
|
136
|
+
"cexist",
|
|
137
|
+
"cinv",
|
|
138
|
+
"close",
|
|
139
|
+
"cnonct",
|
|
140
|
+
"collate",
|
|
141
|
+
"compbl",
|
|
142
|
+
"compound",
|
|
143
|
+
"compress",
|
|
144
|
+
"cos",
|
|
145
|
+
"cosh",
|
|
146
|
+
"css",
|
|
147
|
+
"curobs",
|
|
148
|
+
"cv",
|
|
149
|
+
"daccdb",
|
|
150
|
+
"daccdbsl",
|
|
151
|
+
"daccsl",
|
|
152
|
+
"daccsyd",
|
|
153
|
+
"dacctab",
|
|
154
|
+
"dairy",
|
|
155
|
+
"date",
|
|
156
|
+
"datejul",
|
|
157
|
+
"datepart",
|
|
158
|
+
"datetime",
|
|
159
|
+
"day",
|
|
160
|
+
"dclose",
|
|
161
|
+
"depdb",
|
|
162
|
+
"depdbsl",
|
|
163
|
+
"depdbsl",
|
|
164
|
+
"depsl",
|
|
165
|
+
"depsl",
|
|
166
|
+
"depsyd",
|
|
167
|
+
"depsyd",
|
|
168
|
+
"deptab",
|
|
169
|
+
"deptab",
|
|
170
|
+
"dequote",
|
|
171
|
+
"dhms",
|
|
172
|
+
"dif",
|
|
173
|
+
"digamma",
|
|
174
|
+
"dim",
|
|
175
|
+
"dinfo",
|
|
176
|
+
"dnum",
|
|
177
|
+
"dopen",
|
|
178
|
+
"doptname",
|
|
179
|
+
"doptnum",
|
|
180
|
+
"dread",
|
|
181
|
+
"dropnote",
|
|
182
|
+
"dsname",
|
|
183
|
+
"erf",
|
|
184
|
+
"erfc",
|
|
185
|
+
"exist",
|
|
186
|
+
"exp",
|
|
187
|
+
"fappend",
|
|
188
|
+
"fclose",
|
|
189
|
+
"fcol",
|
|
190
|
+
"fdelete",
|
|
191
|
+
"fetch",
|
|
192
|
+
"fetchobs",
|
|
193
|
+
"fexist",
|
|
194
|
+
"fget",
|
|
195
|
+
"fileexist",
|
|
196
|
+
"filename",
|
|
197
|
+
"fileref",
|
|
198
|
+
"finfo",
|
|
199
|
+
"finv",
|
|
200
|
+
"fipname",
|
|
201
|
+
"fipnamel",
|
|
202
|
+
"fipstate",
|
|
203
|
+
"floor",
|
|
204
|
+
"fnonct",
|
|
205
|
+
"fnote",
|
|
206
|
+
"fopen",
|
|
207
|
+
"foptname",
|
|
208
|
+
"foptnum",
|
|
209
|
+
"fpoint",
|
|
210
|
+
"fpos",
|
|
211
|
+
"fput",
|
|
212
|
+
"fread",
|
|
213
|
+
"frewind",
|
|
214
|
+
"frlen",
|
|
215
|
+
"fsep",
|
|
216
|
+
"fuzz",
|
|
217
|
+
"fwrite",
|
|
218
|
+
"gaminv",
|
|
219
|
+
"gamma",
|
|
220
|
+
"getoption",
|
|
221
|
+
"getvarc",
|
|
222
|
+
"getvarn",
|
|
223
|
+
"hbound",
|
|
224
|
+
"hms",
|
|
225
|
+
"hosthelp",
|
|
226
|
+
"hour",
|
|
227
|
+
"ibessel",
|
|
228
|
+
"index",
|
|
229
|
+
"indexc",
|
|
230
|
+
"indexw",
|
|
231
|
+
"input",
|
|
232
|
+
"inputc",
|
|
233
|
+
"inputn",
|
|
234
|
+
"int",
|
|
235
|
+
"intck",
|
|
236
|
+
"intnx",
|
|
237
|
+
"intrr",
|
|
238
|
+
"irr",
|
|
239
|
+
"jbessel",
|
|
240
|
+
"juldate",
|
|
241
|
+
"kurtosis",
|
|
242
|
+
"lag",
|
|
243
|
+
"lbound",
|
|
244
|
+
"left",
|
|
245
|
+
"length",
|
|
246
|
+
"lgamma",
|
|
247
|
+
"libname",
|
|
248
|
+
"libref",
|
|
249
|
+
"log",
|
|
250
|
+
"log10",
|
|
251
|
+
"log2",
|
|
252
|
+
"logpdf",
|
|
253
|
+
"logpmf",
|
|
254
|
+
"logsdf",
|
|
255
|
+
"lowcase",
|
|
256
|
+
"max",
|
|
257
|
+
"mdy",
|
|
258
|
+
"mean",
|
|
259
|
+
"min",
|
|
260
|
+
"minute",
|
|
261
|
+
"mod",
|
|
262
|
+
"month",
|
|
263
|
+
"mopen",
|
|
264
|
+
"mort",
|
|
265
|
+
"n",
|
|
266
|
+
"netpv",
|
|
267
|
+
"nmiss",
|
|
268
|
+
"normal",
|
|
269
|
+
"note",
|
|
270
|
+
"npv",
|
|
271
|
+
"open",
|
|
272
|
+
"ordinal",
|
|
273
|
+
"pathname",
|
|
274
|
+
"pdf",
|
|
275
|
+
"peek",
|
|
276
|
+
"peekc",
|
|
277
|
+
"pmf",
|
|
278
|
+
"point",
|
|
279
|
+
"poisson",
|
|
280
|
+
"poke",
|
|
281
|
+
"probbeta",
|
|
282
|
+
"probbnml",
|
|
283
|
+
"probchi",
|
|
284
|
+
"probf",
|
|
285
|
+
"probgam",
|
|
286
|
+
"probhypr",
|
|
287
|
+
"probit",
|
|
288
|
+
"probnegb",
|
|
289
|
+
"probnorm",
|
|
290
|
+
"probt",
|
|
291
|
+
"put",
|
|
292
|
+
"putc",
|
|
293
|
+
"putn",
|
|
294
|
+
"qtr",
|
|
295
|
+
"quote",
|
|
296
|
+
"ranbin",
|
|
297
|
+
"rancau",
|
|
298
|
+
"ranexp",
|
|
299
|
+
"rangam",
|
|
300
|
+
"range",
|
|
301
|
+
"rank",
|
|
302
|
+
"rannor",
|
|
303
|
+
"ranpoi",
|
|
304
|
+
"rantbl",
|
|
305
|
+
"rantri",
|
|
306
|
+
"ranuni",
|
|
307
|
+
"repeat",
|
|
308
|
+
"resolve",
|
|
309
|
+
"reverse",
|
|
310
|
+
"rewind",
|
|
311
|
+
"right",
|
|
312
|
+
"round",
|
|
313
|
+
"saving",
|
|
314
|
+
"scan",
|
|
315
|
+
"sdf",
|
|
316
|
+
"second",
|
|
317
|
+
"sign",
|
|
318
|
+
"sin",
|
|
319
|
+
"sinh",
|
|
320
|
+
"skewness",
|
|
321
|
+
"soundex",
|
|
322
|
+
"spedis",
|
|
323
|
+
"sqrt",
|
|
324
|
+
"std",
|
|
325
|
+
"stderr",
|
|
326
|
+
"stfips",
|
|
327
|
+
"stname",
|
|
328
|
+
"stnamel",
|
|
329
|
+
"substr",
|
|
330
|
+
"sum",
|
|
331
|
+
"symget",
|
|
332
|
+
"sysget",
|
|
333
|
+
"sysmsg",
|
|
334
|
+
"sysprod",
|
|
335
|
+
"sysrc",
|
|
336
|
+
"system",
|
|
337
|
+
"tan",
|
|
338
|
+
"tanh",
|
|
339
|
+
"time",
|
|
340
|
+
"timepart",
|
|
341
|
+
"tinv",
|
|
342
|
+
"tnonct",
|
|
343
|
+
"today",
|
|
344
|
+
"translate",
|
|
345
|
+
"tranwrd",
|
|
346
|
+
"trigamma",
|
|
347
|
+
"trim",
|
|
348
|
+
"trimn",
|
|
349
|
+
"trunc",
|
|
350
|
+
"uniform",
|
|
351
|
+
"upcase",
|
|
352
|
+
"uss",
|
|
353
|
+
"var",
|
|
354
|
+
"varfmt",
|
|
355
|
+
"varinfmt",
|
|
356
|
+
"varlabel",
|
|
357
|
+
"varlen",
|
|
358
|
+
"varname",
|
|
359
|
+
"varnum",
|
|
360
|
+
"varray",
|
|
361
|
+
"varrayx",
|
|
362
|
+
"vartype",
|
|
363
|
+
"verify",
|
|
364
|
+
"vformat",
|
|
365
|
+
"vformatd",
|
|
366
|
+
"vformatdx",
|
|
367
|
+
"vformatn",
|
|
368
|
+
"vformatnx",
|
|
369
|
+
"vformatw",
|
|
370
|
+
"vformatwx",
|
|
371
|
+
"vformatx",
|
|
372
|
+
"vinarray",
|
|
373
|
+
"vinarrayx",
|
|
374
|
+
"vinformat",
|
|
375
|
+
"vinformatd",
|
|
376
|
+
"vinformatdx",
|
|
377
|
+
"vinformatn",
|
|
378
|
+
"vinformatnx",
|
|
379
|
+
"vinformatw",
|
|
380
|
+
"vinformatwx",
|
|
381
|
+
"vinformatx",
|
|
382
|
+
"vlabel",
|
|
383
|
+
"vlabelx",
|
|
384
|
+
"vlength",
|
|
385
|
+
"vlengthx",
|
|
386
|
+
"vname",
|
|
387
|
+
"vnamex",
|
|
388
|
+
"vtype",
|
|
389
|
+
"vtypex",
|
|
390
|
+
"weekday",
|
|
391
|
+
"year",
|
|
392
|
+
"yyq",
|
|
393
|
+
"zipfips",
|
|
394
|
+
"zipname",
|
|
395
|
+
"zipnamel",
|
|
396
|
+
"zipstate"
|
|
397
|
+
];
|
|
398
|
+
return {
|
|
399
|
+
name: "SAS",
|
|
400
|
+
case_insensitive: true,
|
|
401
|
+
keywords: {
|
|
402
|
+
literal: [
|
|
403
|
+
"null",
|
|
404
|
+
"missing",
|
|
405
|
+
"_all_",
|
|
406
|
+
"_automatic_",
|
|
407
|
+
"_character_",
|
|
408
|
+
"_infile_",
|
|
409
|
+
"_n_",
|
|
410
|
+
"_name_",
|
|
411
|
+
"_null_",
|
|
412
|
+
"_numeric_",
|
|
413
|
+
"_user_",
|
|
414
|
+
"_webout_"
|
|
415
|
+
],
|
|
416
|
+
keyword: SAS_KEYWORDS
|
|
417
|
+
},
|
|
418
|
+
contains: [
|
|
419
|
+
{
|
|
420
|
+
className: "keyword",
|
|
421
|
+
begin: /^\s*(proc [\w\d_]+|data|run|quit)[\s;]/
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
className: "variable",
|
|
425
|
+
begin: /&[a-zA-Z_&][a-zA-Z0-9_]*\.?/
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
begin: [
|
|
429
|
+
/^\s*/,
|
|
430
|
+
/datalines;|cards;/,
|
|
431
|
+
/(?:.*\n)+/,
|
|
432
|
+
/^\s*;\s*$/
|
|
433
|
+
],
|
|
434
|
+
className: {
|
|
435
|
+
2: "keyword",
|
|
436
|
+
3: "string"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
begin: [
|
|
441
|
+
/%mend|%macro/,
|
|
442
|
+
/\s+/,
|
|
443
|
+
/[a-zA-Z_&][a-zA-Z0-9_]*/
|
|
444
|
+
],
|
|
445
|
+
className: {
|
|
446
|
+
1: "built_in",
|
|
447
|
+
3: "title.function"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
className: "built_in",
|
|
452
|
+
begin: "%" + regex.either(...[
|
|
453
|
+
"bquote",
|
|
454
|
+
"nrbquote",
|
|
455
|
+
"cmpres",
|
|
456
|
+
"qcmpres",
|
|
457
|
+
"compstor",
|
|
458
|
+
"datatyp",
|
|
459
|
+
"display",
|
|
460
|
+
"do",
|
|
461
|
+
"else",
|
|
462
|
+
"end",
|
|
463
|
+
"eval",
|
|
464
|
+
"global",
|
|
465
|
+
"goto",
|
|
466
|
+
"if",
|
|
467
|
+
"index",
|
|
468
|
+
"input",
|
|
469
|
+
"keydef",
|
|
470
|
+
"label",
|
|
471
|
+
"left",
|
|
472
|
+
"length",
|
|
473
|
+
"let",
|
|
474
|
+
"local",
|
|
475
|
+
"lowcase",
|
|
476
|
+
"macro",
|
|
477
|
+
"mend",
|
|
478
|
+
"nrbquote",
|
|
479
|
+
"nrquote",
|
|
480
|
+
"nrstr",
|
|
481
|
+
"put",
|
|
482
|
+
"qcmpres",
|
|
483
|
+
"qleft",
|
|
484
|
+
"qlowcase",
|
|
485
|
+
"qscan",
|
|
486
|
+
"qsubstr",
|
|
487
|
+
"qsysfunc",
|
|
488
|
+
"qtrim",
|
|
489
|
+
"quote",
|
|
490
|
+
"qupcase",
|
|
491
|
+
"scan",
|
|
492
|
+
"str",
|
|
493
|
+
"substr",
|
|
494
|
+
"superq",
|
|
495
|
+
"syscall",
|
|
496
|
+
"sysevalf",
|
|
497
|
+
"sysexec",
|
|
498
|
+
"sysfunc",
|
|
499
|
+
"sysget",
|
|
500
|
+
"syslput",
|
|
501
|
+
"sysprod",
|
|
502
|
+
"sysrc",
|
|
503
|
+
"sysrput",
|
|
504
|
+
"then",
|
|
505
|
+
"to",
|
|
506
|
+
"trim",
|
|
507
|
+
"unquote",
|
|
508
|
+
"until",
|
|
509
|
+
"upcase",
|
|
510
|
+
"verify",
|
|
511
|
+
"while",
|
|
512
|
+
"window"
|
|
513
|
+
])
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
className: "title.function",
|
|
517
|
+
begin: /%[a-zA-Z_][a-zA-Z_0-9]*/
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
className: "meta",
|
|
521
|
+
begin: regex.either(...FUNCTIONS) + "(?=\\()"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
className: "string",
|
|
525
|
+
variants: [hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE]
|
|
526
|
+
},
|
|
527
|
+
hljs.COMMENT("\\*", ";"),
|
|
528
|
+
hljs.C_BLOCK_COMMENT_MODE
|
|
529
|
+
]
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
//#endregion
|
|
533
|
+
export { sas as default };
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/scala.js
|
|
2
|
+
function scala(hljs) {
|
|
3
|
+
const regex = hljs.regex;
|
|
4
|
+
const ANNOTATION = {
|
|
5
|
+
className: "meta",
|
|
6
|
+
begin: "@[A-Za-z]+"
|
|
7
|
+
};
|
|
8
|
+
const SUBST = {
|
|
9
|
+
className: "subst",
|
|
10
|
+
variants: [{ begin: "\\$[A-Za-z0-9_]+" }, {
|
|
11
|
+
begin: /\$\{/,
|
|
12
|
+
end: /\}/
|
|
13
|
+
}]
|
|
14
|
+
};
|
|
15
|
+
const STRING = {
|
|
16
|
+
className: "string",
|
|
17
|
+
variants: [
|
|
18
|
+
{
|
|
19
|
+
begin: "\"\"\"",
|
|
20
|
+
end: "\"\"\""
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
begin: "\"",
|
|
24
|
+
end: "\"",
|
|
25
|
+
illegal: "\\n",
|
|
26
|
+
contains: [hljs.BACKSLASH_ESCAPE]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
begin: "[a-z]+\"",
|
|
30
|
+
end: "\"",
|
|
31
|
+
illegal: "\\n",
|
|
32
|
+
contains: [hljs.BACKSLASH_ESCAPE, SUBST]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
className: "string",
|
|
36
|
+
begin: "[a-z]+\"\"\"",
|
|
37
|
+
end: "\"\"\"",
|
|
38
|
+
contains: [SUBST],
|
|
39
|
+
relevance: 10
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
};
|
|
43
|
+
const TYPE = {
|
|
44
|
+
className: "type",
|
|
45
|
+
begin: "\\b[A-Z][A-Za-z0-9_]*",
|
|
46
|
+
relevance: 0
|
|
47
|
+
};
|
|
48
|
+
const NAME = {
|
|
49
|
+
className: "title",
|
|
50
|
+
begin: /[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,
|
|
51
|
+
relevance: 0
|
|
52
|
+
};
|
|
53
|
+
const CLASS = {
|
|
54
|
+
className: "class",
|
|
55
|
+
beginKeywords: "class object trait type",
|
|
56
|
+
end: /[:={\[\n;]/,
|
|
57
|
+
excludeEnd: true,
|
|
58
|
+
contains: [
|
|
59
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
60
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
61
|
+
{
|
|
62
|
+
beginKeywords: "extends with",
|
|
63
|
+
relevance: 10
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
begin: /\[/,
|
|
67
|
+
end: /\]/,
|
|
68
|
+
excludeBegin: true,
|
|
69
|
+
excludeEnd: true,
|
|
70
|
+
relevance: 0,
|
|
71
|
+
contains: [
|
|
72
|
+
TYPE,
|
|
73
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
74
|
+
hljs.C_BLOCK_COMMENT_MODE
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
className: "params",
|
|
79
|
+
begin: /\(/,
|
|
80
|
+
end: /\)/,
|
|
81
|
+
excludeBegin: true,
|
|
82
|
+
excludeEnd: true,
|
|
83
|
+
relevance: 0,
|
|
84
|
+
contains: [
|
|
85
|
+
TYPE,
|
|
86
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
87
|
+
hljs.C_BLOCK_COMMENT_MODE
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
NAME
|
|
91
|
+
]
|
|
92
|
+
};
|
|
93
|
+
const METHOD = {
|
|
94
|
+
className: "function",
|
|
95
|
+
beginKeywords: "def",
|
|
96
|
+
end: regex.lookahead(/[:={\[(\n;]/),
|
|
97
|
+
contains: [NAME]
|
|
98
|
+
};
|
|
99
|
+
const EXTENSION = {
|
|
100
|
+
begin: [
|
|
101
|
+
/^\s*/,
|
|
102
|
+
"extension",
|
|
103
|
+
/\s+(?=[[(])/
|
|
104
|
+
],
|
|
105
|
+
beginScope: { 2: "keyword" }
|
|
106
|
+
};
|
|
107
|
+
const END = {
|
|
108
|
+
begin: [
|
|
109
|
+
/^\s*/,
|
|
110
|
+
/end/,
|
|
111
|
+
/\s+/,
|
|
112
|
+
/(extension\b)?/
|
|
113
|
+
],
|
|
114
|
+
beginScope: {
|
|
115
|
+
2: "keyword",
|
|
116
|
+
4: "keyword"
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
const INLINE_MODES = [{ match: /\.inline\b/ }, {
|
|
120
|
+
begin: /\binline(?=\s)/,
|
|
121
|
+
keywords: "inline"
|
|
122
|
+
}];
|
|
123
|
+
const USING_PARAM_CLAUSE = {
|
|
124
|
+
begin: [
|
|
125
|
+
/\(\s*/,
|
|
126
|
+
/using/,
|
|
127
|
+
/\s+(?!\))/
|
|
128
|
+
],
|
|
129
|
+
beginScope: { 2: "keyword" }
|
|
130
|
+
};
|
|
131
|
+
return {
|
|
132
|
+
name: "Scala",
|
|
133
|
+
keywords: {
|
|
134
|
+
literal: "true false null",
|
|
135
|
+
keyword: "type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"
|
|
136
|
+
},
|
|
137
|
+
contains: [
|
|
138
|
+
{
|
|
139
|
+
begin: [
|
|
140
|
+
"//>",
|
|
141
|
+
/\s+/,
|
|
142
|
+
/using/,
|
|
143
|
+
/\s+/,
|
|
144
|
+
/\S+/
|
|
145
|
+
],
|
|
146
|
+
beginScope: {
|
|
147
|
+
1: "comment",
|
|
148
|
+
3: "keyword",
|
|
149
|
+
5: "type"
|
|
150
|
+
},
|
|
151
|
+
end: /$/,
|
|
152
|
+
contains: [{
|
|
153
|
+
className: "string",
|
|
154
|
+
begin: /\S+/
|
|
155
|
+
}]
|
|
156
|
+
},
|
|
157
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
158
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
159
|
+
STRING,
|
|
160
|
+
TYPE,
|
|
161
|
+
METHOD,
|
|
162
|
+
CLASS,
|
|
163
|
+
hljs.C_NUMBER_MODE,
|
|
164
|
+
EXTENSION,
|
|
165
|
+
END,
|
|
166
|
+
...INLINE_MODES,
|
|
167
|
+
USING_PARAM_CLAUSE,
|
|
168
|
+
ANNOTATION
|
|
169
|
+
]
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
//#endregion
|
|
173
|
+
export { scala as default };
|