@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.
- 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/components/ui-tree-item/ui-tree-item.html +5 -5
- package/components/ui-tree-item/ui-tree-item.js +20 -3
- package/dist/index.js +1 -1
- package/editor/chunks/extensions.js +24 -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/styles/ui-tree-item.css +5 -5
- 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/UiTreeItem.vue +5 -5
- package/vue/chunks/1c.js +106 -0
- package/vue/chunks/UiEditorTableOverlay.js +14 -4
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiTreeItem.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 +204 -170
- 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,534 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/verilog.js
|
|
2
|
+
function verilog(hljs) {
|
|
3
|
+
const regex = hljs.regex;
|
|
4
|
+
const KEYWORDS = {
|
|
5
|
+
$pattern: /\$?[\w]+(\$[\w]+)*/,
|
|
6
|
+
keyword: [
|
|
7
|
+
"accept_on",
|
|
8
|
+
"alias",
|
|
9
|
+
"always",
|
|
10
|
+
"always_comb",
|
|
11
|
+
"always_ff",
|
|
12
|
+
"always_latch",
|
|
13
|
+
"and",
|
|
14
|
+
"assert",
|
|
15
|
+
"assign",
|
|
16
|
+
"assume",
|
|
17
|
+
"automatic",
|
|
18
|
+
"before",
|
|
19
|
+
"begin",
|
|
20
|
+
"bind",
|
|
21
|
+
"bins",
|
|
22
|
+
"binsof",
|
|
23
|
+
"bit",
|
|
24
|
+
"break",
|
|
25
|
+
"buf|0",
|
|
26
|
+
"bufif0",
|
|
27
|
+
"bufif1",
|
|
28
|
+
"byte",
|
|
29
|
+
"case",
|
|
30
|
+
"casex",
|
|
31
|
+
"casez",
|
|
32
|
+
"cell",
|
|
33
|
+
"chandle",
|
|
34
|
+
"checker",
|
|
35
|
+
"class",
|
|
36
|
+
"clocking",
|
|
37
|
+
"cmos",
|
|
38
|
+
"config",
|
|
39
|
+
"const",
|
|
40
|
+
"constraint",
|
|
41
|
+
"context",
|
|
42
|
+
"continue",
|
|
43
|
+
"cover",
|
|
44
|
+
"covergroup",
|
|
45
|
+
"coverpoint",
|
|
46
|
+
"cross",
|
|
47
|
+
"deassign",
|
|
48
|
+
"default",
|
|
49
|
+
"defparam",
|
|
50
|
+
"design",
|
|
51
|
+
"disable",
|
|
52
|
+
"dist",
|
|
53
|
+
"do",
|
|
54
|
+
"edge",
|
|
55
|
+
"else",
|
|
56
|
+
"end",
|
|
57
|
+
"endcase",
|
|
58
|
+
"endchecker",
|
|
59
|
+
"endclass",
|
|
60
|
+
"endclocking",
|
|
61
|
+
"endconfig",
|
|
62
|
+
"endfunction",
|
|
63
|
+
"endgenerate",
|
|
64
|
+
"endgroup",
|
|
65
|
+
"endinterface",
|
|
66
|
+
"endmodule",
|
|
67
|
+
"endpackage",
|
|
68
|
+
"endprimitive",
|
|
69
|
+
"endprogram",
|
|
70
|
+
"endproperty",
|
|
71
|
+
"endspecify",
|
|
72
|
+
"endsequence",
|
|
73
|
+
"endtable",
|
|
74
|
+
"endtask",
|
|
75
|
+
"enum",
|
|
76
|
+
"event",
|
|
77
|
+
"eventually",
|
|
78
|
+
"expect",
|
|
79
|
+
"export",
|
|
80
|
+
"extends",
|
|
81
|
+
"extern",
|
|
82
|
+
"final",
|
|
83
|
+
"first_match",
|
|
84
|
+
"for",
|
|
85
|
+
"force",
|
|
86
|
+
"foreach",
|
|
87
|
+
"forever",
|
|
88
|
+
"fork",
|
|
89
|
+
"forkjoin",
|
|
90
|
+
"function",
|
|
91
|
+
"generate|5",
|
|
92
|
+
"genvar",
|
|
93
|
+
"global",
|
|
94
|
+
"highz0",
|
|
95
|
+
"highz1",
|
|
96
|
+
"if",
|
|
97
|
+
"iff",
|
|
98
|
+
"ifnone",
|
|
99
|
+
"ignore_bins",
|
|
100
|
+
"illegal_bins",
|
|
101
|
+
"implements",
|
|
102
|
+
"implies",
|
|
103
|
+
"import",
|
|
104
|
+
"incdir",
|
|
105
|
+
"include",
|
|
106
|
+
"initial",
|
|
107
|
+
"inout",
|
|
108
|
+
"input",
|
|
109
|
+
"inside",
|
|
110
|
+
"instance",
|
|
111
|
+
"int",
|
|
112
|
+
"integer",
|
|
113
|
+
"interconnect",
|
|
114
|
+
"interface",
|
|
115
|
+
"intersect",
|
|
116
|
+
"join",
|
|
117
|
+
"join_any",
|
|
118
|
+
"join_none",
|
|
119
|
+
"large",
|
|
120
|
+
"let",
|
|
121
|
+
"liblist",
|
|
122
|
+
"library",
|
|
123
|
+
"local",
|
|
124
|
+
"localparam",
|
|
125
|
+
"logic",
|
|
126
|
+
"longint",
|
|
127
|
+
"macromodule",
|
|
128
|
+
"matches",
|
|
129
|
+
"medium",
|
|
130
|
+
"modport",
|
|
131
|
+
"module",
|
|
132
|
+
"nand",
|
|
133
|
+
"negedge",
|
|
134
|
+
"nettype",
|
|
135
|
+
"new",
|
|
136
|
+
"nexttime",
|
|
137
|
+
"nmos",
|
|
138
|
+
"nor",
|
|
139
|
+
"noshowcancelled",
|
|
140
|
+
"not",
|
|
141
|
+
"notif0",
|
|
142
|
+
"notif1",
|
|
143
|
+
"or",
|
|
144
|
+
"output",
|
|
145
|
+
"package",
|
|
146
|
+
"packed",
|
|
147
|
+
"parameter",
|
|
148
|
+
"pmos",
|
|
149
|
+
"posedge",
|
|
150
|
+
"primitive",
|
|
151
|
+
"priority",
|
|
152
|
+
"program",
|
|
153
|
+
"property",
|
|
154
|
+
"protected",
|
|
155
|
+
"pull0",
|
|
156
|
+
"pull1",
|
|
157
|
+
"pulldown",
|
|
158
|
+
"pullup",
|
|
159
|
+
"pulsestyle_ondetect",
|
|
160
|
+
"pulsestyle_onevent",
|
|
161
|
+
"pure",
|
|
162
|
+
"rand",
|
|
163
|
+
"randc",
|
|
164
|
+
"randcase",
|
|
165
|
+
"randsequence",
|
|
166
|
+
"rcmos",
|
|
167
|
+
"real",
|
|
168
|
+
"realtime",
|
|
169
|
+
"ref",
|
|
170
|
+
"reg",
|
|
171
|
+
"reject_on",
|
|
172
|
+
"release",
|
|
173
|
+
"repeat",
|
|
174
|
+
"restrict",
|
|
175
|
+
"return",
|
|
176
|
+
"rnmos",
|
|
177
|
+
"rpmos",
|
|
178
|
+
"rtran",
|
|
179
|
+
"rtranif0",
|
|
180
|
+
"rtranif1",
|
|
181
|
+
"s_always",
|
|
182
|
+
"s_eventually",
|
|
183
|
+
"s_nexttime",
|
|
184
|
+
"s_until",
|
|
185
|
+
"s_until_with",
|
|
186
|
+
"scalared",
|
|
187
|
+
"sequence",
|
|
188
|
+
"shortint",
|
|
189
|
+
"shortreal",
|
|
190
|
+
"showcancelled",
|
|
191
|
+
"signed",
|
|
192
|
+
"small",
|
|
193
|
+
"soft",
|
|
194
|
+
"solve",
|
|
195
|
+
"specify",
|
|
196
|
+
"specparam",
|
|
197
|
+
"static",
|
|
198
|
+
"string",
|
|
199
|
+
"strong",
|
|
200
|
+
"strong0",
|
|
201
|
+
"strong1",
|
|
202
|
+
"struct",
|
|
203
|
+
"super",
|
|
204
|
+
"supply0",
|
|
205
|
+
"supply1",
|
|
206
|
+
"sync_accept_on",
|
|
207
|
+
"sync_reject_on",
|
|
208
|
+
"table",
|
|
209
|
+
"tagged",
|
|
210
|
+
"task",
|
|
211
|
+
"this",
|
|
212
|
+
"throughout",
|
|
213
|
+
"time",
|
|
214
|
+
"timeprecision",
|
|
215
|
+
"timeunit",
|
|
216
|
+
"tran",
|
|
217
|
+
"tranif0",
|
|
218
|
+
"tranif1",
|
|
219
|
+
"tri",
|
|
220
|
+
"tri0",
|
|
221
|
+
"tri1",
|
|
222
|
+
"triand",
|
|
223
|
+
"trior",
|
|
224
|
+
"trireg",
|
|
225
|
+
"type",
|
|
226
|
+
"typedef",
|
|
227
|
+
"union",
|
|
228
|
+
"unique",
|
|
229
|
+
"unique0",
|
|
230
|
+
"unsigned",
|
|
231
|
+
"until",
|
|
232
|
+
"until_with",
|
|
233
|
+
"untyped",
|
|
234
|
+
"use",
|
|
235
|
+
"uwire",
|
|
236
|
+
"var",
|
|
237
|
+
"vectored",
|
|
238
|
+
"virtual",
|
|
239
|
+
"void",
|
|
240
|
+
"wait",
|
|
241
|
+
"wait_order",
|
|
242
|
+
"wand",
|
|
243
|
+
"weak",
|
|
244
|
+
"weak0",
|
|
245
|
+
"weak1",
|
|
246
|
+
"while",
|
|
247
|
+
"wildcard",
|
|
248
|
+
"wire",
|
|
249
|
+
"with",
|
|
250
|
+
"within",
|
|
251
|
+
"wor",
|
|
252
|
+
"xnor",
|
|
253
|
+
"xor"
|
|
254
|
+
],
|
|
255
|
+
literal: ["null"],
|
|
256
|
+
built_in: [
|
|
257
|
+
"$finish",
|
|
258
|
+
"$stop",
|
|
259
|
+
"$exit",
|
|
260
|
+
"$fatal",
|
|
261
|
+
"$error",
|
|
262
|
+
"$warning",
|
|
263
|
+
"$info",
|
|
264
|
+
"$realtime",
|
|
265
|
+
"$time",
|
|
266
|
+
"$printtimescale",
|
|
267
|
+
"$bitstoreal",
|
|
268
|
+
"$bitstoshortreal",
|
|
269
|
+
"$itor",
|
|
270
|
+
"$signed",
|
|
271
|
+
"$cast",
|
|
272
|
+
"$bits",
|
|
273
|
+
"$stime",
|
|
274
|
+
"$timeformat",
|
|
275
|
+
"$realtobits",
|
|
276
|
+
"$shortrealtobits",
|
|
277
|
+
"$rtoi",
|
|
278
|
+
"$unsigned",
|
|
279
|
+
"$asserton",
|
|
280
|
+
"$assertkill",
|
|
281
|
+
"$assertpasson",
|
|
282
|
+
"$assertfailon",
|
|
283
|
+
"$assertnonvacuouson",
|
|
284
|
+
"$assertoff",
|
|
285
|
+
"$assertcontrol",
|
|
286
|
+
"$assertpassoff",
|
|
287
|
+
"$assertfailoff",
|
|
288
|
+
"$assertvacuousoff",
|
|
289
|
+
"$isunbounded",
|
|
290
|
+
"$sampled",
|
|
291
|
+
"$fell",
|
|
292
|
+
"$changed",
|
|
293
|
+
"$past_gclk",
|
|
294
|
+
"$fell_gclk",
|
|
295
|
+
"$changed_gclk",
|
|
296
|
+
"$rising_gclk",
|
|
297
|
+
"$steady_gclk",
|
|
298
|
+
"$coverage_control",
|
|
299
|
+
"$coverage_get",
|
|
300
|
+
"$coverage_save",
|
|
301
|
+
"$set_coverage_db_name",
|
|
302
|
+
"$rose",
|
|
303
|
+
"$stable",
|
|
304
|
+
"$past",
|
|
305
|
+
"$rose_gclk",
|
|
306
|
+
"$stable_gclk",
|
|
307
|
+
"$future_gclk",
|
|
308
|
+
"$falling_gclk",
|
|
309
|
+
"$changing_gclk",
|
|
310
|
+
"$display",
|
|
311
|
+
"$coverage_get_max",
|
|
312
|
+
"$coverage_merge",
|
|
313
|
+
"$get_coverage",
|
|
314
|
+
"$load_coverage_db",
|
|
315
|
+
"$typename",
|
|
316
|
+
"$unpacked_dimensions",
|
|
317
|
+
"$left",
|
|
318
|
+
"$low",
|
|
319
|
+
"$increment",
|
|
320
|
+
"$clog2",
|
|
321
|
+
"$ln",
|
|
322
|
+
"$log10",
|
|
323
|
+
"$exp",
|
|
324
|
+
"$sqrt",
|
|
325
|
+
"$pow",
|
|
326
|
+
"$floor",
|
|
327
|
+
"$ceil",
|
|
328
|
+
"$sin",
|
|
329
|
+
"$cos",
|
|
330
|
+
"$tan",
|
|
331
|
+
"$countbits",
|
|
332
|
+
"$onehot",
|
|
333
|
+
"$isunknown",
|
|
334
|
+
"$fatal",
|
|
335
|
+
"$warning",
|
|
336
|
+
"$dimensions",
|
|
337
|
+
"$right",
|
|
338
|
+
"$high",
|
|
339
|
+
"$size",
|
|
340
|
+
"$asin",
|
|
341
|
+
"$acos",
|
|
342
|
+
"$atan",
|
|
343
|
+
"$atan2",
|
|
344
|
+
"$hypot",
|
|
345
|
+
"$sinh",
|
|
346
|
+
"$cosh",
|
|
347
|
+
"$tanh",
|
|
348
|
+
"$asinh",
|
|
349
|
+
"$acosh",
|
|
350
|
+
"$atanh",
|
|
351
|
+
"$countones",
|
|
352
|
+
"$onehot0",
|
|
353
|
+
"$error",
|
|
354
|
+
"$info",
|
|
355
|
+
"$random",
|
|
356
|
+
"$dist_chi_square",
|
|
357
|
+
"$dist_erlang",
|
|
358
|
+
"$dist_exponential",
|
|
359
|
+
"$dist_normal",
|
|
360
|
+
"$dist_poisson",
|
|
361
|
+
"$dist_t",
|
|
362
|
+
"$dist_uniform",
|
|
363
|
+
"$q_initialize",
|
|
364
|
+
"$q_remove",
|
|
365
|
+
"$q_exam",
|
|
366
|
+
"$async$and$array",
|
|
367
|
+
"$async$nand$array",
|
|
368
|
+
"$async$or$array",
|
|
369
|
+
"$async$nor$array",
|
|
370
|
+
"$sync$and$array",
|
|
371
|
+
"$sync$nand$array",
|
|
372
|
+
"$sync$or$array",
|
|
373
|
+
"$sync$nor$array",
|
|
374
|
+
"$q_add",
|
|
375
|
+
"$q_full",
|
|
376
|
+
"$psprintf",
|
|
377
|
+
"$async$and$plane",
|
|
378
|
+
"$async$nand$plane",
|
|
379
|
+
"$async$or$plane",
|
|
380
|
+
"$async$nor$plane",
|
|
381
|
+
"$sync$and$plane",
|
|
382
|
+
"$sync$nand$plane",
|
|
383
|
+
"$sync$or$plane",
|
|
384
|
+
"$sync$nor$plane",
|
|
385
|
+
"$system",
|
|
386
|
+
"$display",
|
|
387
|
+
"$displayb",
|
|
388
|
+
"$displayh",
|
|
389
|
+
"$displayo",
|
|
390
|
+
"$strobe",
|
|
391
|
+
"$strobeb",
|
|
392
|
+
"$strobeh",
|
|
393
|
+
"$strobeo",
|
|
394
|
+
"$write",
|
|
395
|
+
"$readmemb",
|
|
396
|
+
"$readmemh",
|
|
397
|
+
"$writememh",
|
|
398
|
+
"$value$plusargs",
|
|
399
|
+
"$dumpvars",
|
|
400
|
+
"$dumpon",
|
|
401
|
+
"$dumplimit",
|
|
402
|
+
"$dumpports",
|
|
403
|
+
"$dumpportson",
|
|
404
|
+
"$dumpportslimit",
|
|
405
|
+
"$writeb",
|
|
406
|
+
"$writeh",
|
|
407
|
+
"$writeo",
|
|
408
|
+
"$monitor",
|
|
409
|
+
"$monitorb",
|
|
410
|
+
"$monitorh",
|
|
411
|
+
"$monitoro",
|
|
412
|
+
"$writememb",
|
|
413
|
+
"$dumpfile",
|
|
414
|
+
"$dumpoff",
|
|
415
|
+
"$dumpall",
|
|
416
|
+
"$dumpflush",
|
|
417
|
+
"$dumpportsoff",
|
|
418
|
+
"$dumpportsall",
|
|
419
|
+
"$dumpportsflush",
|
|
420
|
+
"$fclose",
|
|
421
|
+
"$fdisplay",
|
|
422
|
+
"$fdisplayb",
|
|
423
|
+
"$fdisplayh",
|
|
424
|
+
"$fdisplayo",
|
|
425
|
+
"$fstrobe",
|
|
426
|
+
"$fstrobeb",
|
|
427
|
+
"$fstrobeh",
|
|
428
|
+
"$fstrobeo",
|
|
429
|
+
"$swrite",
|
|
430
|
+
"$swriteb",
|
|
431
|
+
"$swriteh",
|
|
432
|
+
"$swriteo",
|
|
433
|
+
"$fscanf",
|
|
434
|
+
"$fread",
|
|
435
|
+
"$fseek",
|
|
436
|
+
"$fflush",
|
|
437
|
+
"$feof",
|
|
438
|
+
"$fopen",
|
|
439
|
+
"$fwrite",
|
|
440
|
+
"$fwriteb",
|
|
441
|
+
"$fwriteh",
|
|
442
|
+
"$fwriteo",
|
|
443
|
+
"$fmonitor",
|
|
444
|
+
"$fmonitorb",
|
|
445
|
+
"$fmonitorh",
|
|
446
|
+
"$fmonitoro",
|
|
447
|
+
"$sformat",
|
|
448
|
+
"$sformatf",
|
|
449
|
+
"$fgetc",
|
|
450
|
+
"$ungetc",
|
|
451
|
+
"$fgets",
|
|
452
|
+
"$sscanf",
|
|
453
|
+
"$rewind",
|
|
454
|
+
"$ftell",
|
|
455
|
+
"$ferror"
|
|
456
|
+
]
|
|
457
|
+
};
|
|
458
|
+
const BUILT_IN_CONSTANTS = ["__FILE__", "__LINE__"];
|
|
459
|
+
const DIRECTIVES = [
|
|
460
|
+
"begin_keywords",
|
|
461
|
+
"celldefine",
|
|
462
|
+
"default_nettype",
|
|
463
|
+
"default_decay_time",
|
|
464
|
+
"default_trireg_strength",
|
|
465
|
+
"define",
|
|
466
|
+
"delay_mode_distributed",
|
|
467
|
+
"delay_mode_path",
|
|
468
|
+
"delay_mode_unit",
|
|
469
|
+
"delay_mode_zero",
|
|
470
|
+
"else",
|
|
471
|
+
"elsif",
|
|
472
|
+
"end_keywords",
|
|
473
|
+
"endcelldefine",
|
|
474
|
+
"endif",
|
|
475
|
+
"ifdef",
|
|
476
|
+
"ifndef",
|
|
477
|
+
"include",
|
|
478
|
+
"line",
|
|
479
|
+
"nounconnected_drive",
|
|
480
|
+
"pragma",
|
|
481
|
+
"resetall",
|
|
482
|
+
"timescale",
|
|
483
|
+
"unconnected_drive",
|
|
484
|
+
"undef",
|
|
485
|
+
"undefineall"
|
|
486
|
+
];
|
|
487
|
+
return {
|
|
488
|
+
name: "Verilog",
|
|
489
|
+
aliases: [
|
|
490
|
+
"v",
|
|
491
|
+
"sv",
|
|
492
|
+
"svh"
|
|
493
|
+
],
|
|
494
|
+
case_insensitive: false,
|
|
495
|
+
keywords: KEYWORDS,
|
|
496
|
+
contains: [
|
|
497
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
498
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
499
|
+
hljs.QUOTE_STRING_MODE,
|
|
500
|
+
{
|
|
501
|
+
scope: "number",
|
|
502
|
+
contains: [hljs.BACKSLASH_ESCAPE],
|
|
503
|
+
variants: [
|
|
504
|
+
{ begin: /\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/ },
|
|
505
|
+
{ begin: /\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/ },
|
|
506
|
+
{
|
|
507
|
+
begin: /\b[0-9][0-9_]*/,
|
|
508
|
+
relevance: 0
|
|
509
|
+
}
|
|
510
|
+
]
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
scope: "variable",
|
|
514
|
+
variants: [{ begin: "#\\((?!parameter).+\\)" }, {
|
|
515
|
+
begin: "\\.\\w+",
|
|
516
|
+
relevance: 0
|
|
517
|
+
}]
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
scope: "variable.constant",
|
|
521
|
+
match: regex.concat(/`/, regex.either(...BUILT_IN_CONSTANTS))
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
scope: "meta",
|
|
525
|
+
begin: regex.concat(/`/, regex.either(...DIRECTIVES)),
|
|
526
|
+
end: /$|\/\/|\/\*/,
|
|
527
|
+
returnEnd: true,
|
|
528
|
+
keywords: DIRECTIVES
|
|
529
|
+
}
|
|
530
|
+
]
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
//#endregion
|
|
534
|
+
export { verilog as default };
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/vhdl.js
|
|
2
|
+
function vhdl(hljs) {
|
|
3
|
+
return {
|
|
4
|
+
name: "VHDL",
|
|
5
|
+
case_insensitive: true,
|
|
6
|
+
keywords: {
|
|
7
|
+
keyword: [
|
|
8
|
+
"abs",
|
|
9
|
+
"access",
|
|
10
|
+
"after",
|
|
11
|
+
"alias",
|
|
12
|
+
"all",
|
|
13
|
+
"and",
|
|
14
|
+
"architecture",
|
|
15
|
+
"array",
|
|
16
|
+
"assert",
|
|
17
|
+
"assume",
|
|
18
|
+
"assume_guarantee",
|
|
19
|
+
"attribute",
|
|
20
|
+
"begin",
|
|
21
|
+
"block",
|
|
22
|
+
"body",
|
|
23
|
+
"buffer",
|
|
24
|
+
"bus",
|
|
25
|
+
"case",
|
|
26
|
+
"component",
|
|
27
|
+
"configuration",
|
|
28
|
+
"constant",
|
|
29
|
+
"context",
|
|
30
|
+
"cover",
|
|
31
|
+
"disconnect",
|
|
32
|
+
"downto",
|
|
33
|
+
"default",
|
|
34
|
+
"else",
|
|
35
|
+
"elsif",
|
|
36
|
+
"end",
|
|
37
|
+
"entity",
|
|
38
|
+
"exit",
|
|
39
|
+
"fairness",
|
|
40
|
+
"file",
|
|
41
|
+
"for",
|
|
42
|
+
"force",
|
|
43
|
+
"function",
|
|
44
|
+
"generate",
|
|
45
|
+
"generic",
|
|
46
|
+
"group",
|
|
47
|
+
"guarded",
|
|
48
|
+
"if",
|
|
49
|
+
"impure",
|
|
50
|
+
"in",
|
|
51
|
+
"inertial",
|
|
52
|
+
"inout",
|
|
53
|
+
"is",
|
|
54
|
+
"label",
|
|
55
|
+
"library",
|
|
56
|
+
"linkage",
|
|
57
|
+
"literal",
|
|
58
|
+
"loop",
|
|
59
|
+
"map",
|
|
60
|
+
"mod",
|
|
61
|
+
"nand",
|
|
62
|
+
"new",
|
|
63
|
+
"next",
|
|
64
|
+
"nor",
|
|
65
|
+
"not",
|
|
66
|
+
"null",
|
|
67
|
+
"of",
|
|
68
|
+
"on",
|
|
69
|
+
"open",
|
|
70
|
+
"or",
|
|
71
|
+
"others",
|
|
72
|
+
"out",
|
|
73
|
+
"package",
|
|
74
|
+
"parameter",
|
|
75
|
+
"port",
|
|
76
|
+
"postponed",
|
|
77
|
+
"procedure",
|
|
78
|
+
"process",
|
|
79
|
+
"property",
|
|
80
|
+
"protected",
|
|
81
|
+
"pure",
|
|
82
|
+
"range",
|
|
83
|
+
"record",
|
|
84
|
+
"register",
|
|
85
|
+
"reject",
|
|
86
|
+
"release",
|
|
87
|
+
"rem",
|
|
88
|
+
"report",
|
|
89
|
+
"restrict",
|
|
90
|
+
"restrict_guarantee",
|
|
91
|
+
"return",
|
|
92
|
+
"rol",
|
|
93
|
+
"ror",
|
|
94
|
+
"select",
|
|
95
|
+
"sequence",
|
|
96
|
+
"severity",
|
|
97
|
+
"shared",
|
|
98
|
+
"signal",
|
|
99
|
+
"sla",
|
|
100
|
+
"sll",
|
|
101
|
+
"sra",
|
|
102
|
+
"srl",
|
|
103
|
+
"strong",
|
|
104
|
+
"subtype",
|
|
105
|
+
"then",
|
|
106
|
+
"to",
|
|
107
|
+
"transport",
|
|
108
|
+
"type",
|
|
109
|
+
"unaffected",
|
|
110
|
+
"units",
|
|
111
|
+
"until",
|
|
112
|
+
"use",
|
|
113
|
+
"variable",
|
|
114
|
+
"view",
|
|
115
|
+
"vmode",
|
|
116
|
+
"vprop",
|
|
117
|
+
"vunit",
|
|
118
|
+
"wait",
|
|
119
|
+
"when",
|
|
120
|
+
"while",
|
|
121
|
+
"with",
|
|
122
|
+
"xnor",
|
|
123
|
+
"xor"
|
|
124
|
+
],
|
|
125
|
+
built_in: [
|
|
126
|
+
"boolean",
|
|
127
|
+
"bit",
|
|
128
|
+
"character",
|
|
129
|
+
"integer",
|
|
130
|
+
"time",
|
|
131
|
+
"delay_length",
|
|
132
|
+
"natural",
|
|
133
|
+
"positive",
|
|
134
|
+
"string",
|
|
135
|
+
"bit_vector",
|
|
136
|
+
"file_open_kind",
|
|
137
|
+
"file_open_status",
|
|
138
|
+
"std_logic",
|
|
139
|
+
"std_logic_vector",
|
|
140
|
+
"unsigned",
|
|
141
|
+
"signed",
|
|
142
|
+
"boolean_vector",
|
|
143
|
+
"integer_vector",
|
|
144
|
+
"std_ulogic",
|
|
145
|
+
"std_ulogic_vector",
|
|
146
|
+
"unresolved_unsigned",
|
|
147
|
+
"u_unsigned",
|
|
148
|
+
"unresolved_signed",
|
|
149
|
+
"u_signed",
|
|
150
|
+
"real_vector",
|
|
151
|
+
"time_vector"
|
|
152
|
+
],
|
|
153
|
+
literal: [
|
|
154
|
+
"false",
|
|
155
|
+
"true",
|
|
156
|
+
"note",
|
|
157
|
+
"warning",
|
|
158
|
+
"error",
|
|
159
|
+
"failure",
|
|
160
|
+
"line",
|
|
161
|
+
"text",
|
|
162
|
+
"side",
|
|
163
|
+
"width"
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
illegal: /\{/,
|
|
167
|
+
contains: [
|
|
168
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
169
|
+
hljs.COMMENT("--", "$"),
|
|
170
|
+
hljs.QUOTE_STRING_MODE,
|
|
171
|
+
{
|
|
172
|
+
className: "number",
|
|
173
|
+
begin: "\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)",
|
|
174
|
+
relevance: 0
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
className: "string",
|
|
178
|
+
begin: "'(U|X|0|1|Z|W|L|H|-)'",
|
|
179
|
+
contains: [hljs.BACKSLASH_ESCAPE]
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
className: "symbol",
|
|
183
|
+
begin: "'[A-Za-z](_?[A-Za-z0-9])*",
|
|
184
|
+
contains: [hljs.BACKSLASH_ESCAPE]
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
export { vhdl as default };
|