@kg-ui/kg-ui-plus 0.1.46 → 0.1.48

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 (83) hide show
  1. package/dist/es/KgCopilot/CopiCanvas/index.vue.mjs +1 -1
  2. package/dist/es/KgCopilot/CopiCanvas/index.vue2.mjs +4 -5
  3. package/dist/es/KgCopilot/CopiCanvas/index.vue3.mjs +2 -2
  4. package/dist/es/KgCopilot/CopiCanvas/testWPS.vue.mjs +7 -0
  5. package/dist/es/KgCopilot/CopiCanvas/testWPS.vue2.mjs +51 -0
  6. package/dist/es/KgCopilot/CopiCanvas/testWPS.vue3.mjs +4 -0
  7. package/dist/es/KgCopilot/CopiCanvas/web-office-sdk-solution-v2.0.7.es.mjs +854 -0
  8. package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue2.mjs +1 -1
  9. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue2.mjs +1 -1
  10. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +1 -1
  11. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue2.mjs +1 -1
  12. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue2.mjs +3 -3
  13. package/dist/es/KgCopilot/historyRecord/index.vue.mjs +1 -1
  14. package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +7 -7
  15. package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +2 -2
  16. package/dist/es/KgCopilot/index.vue.mjs +1 -1
  17. package/dist/es/KgCopilot/index.vue2.mjs +8 -5
  18. package/dist/es/KgCopilot/index.vue3.mjs +2 -2
  19. package/dist/es/api/copilot.mjs +0 -8
  20. package/dist/es/directives/heighlight/index.mjs +27 -27
  21. package/dist/es/home/LFilter/FilterHead.vue.mjs +1 -1
  22. package/dist/es/node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.2.45/node_modules/@vueuse/core/index.mjs +1 -3
  23. package/dist/es/node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.2.45/node_modules/@vueuse/shared/index.mjs +1 -52
  24. package/dist/es/node_modules/.pnpm/{dompurify@3.2.3 → dompurify@3.0.10}/node_modules/dompurify/dist/purify.es.mjs +91 -119
  25. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/apache.mjs +0 -4
  26. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/bash.mjs +2 -20
  27. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/basic.mjs +1 -7
  28. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/c.mjs +4 -19
  29. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/css.mjs +8 -214
  30. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/dart.mjs +2 -10
  31. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/erlang.mjs +6 -48
  32. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/go.mjs +3 -23
  33. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/java.mjs +1 -3
  34. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/javascript.mjs +11 -15
  35. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/json.mjs +0 -1
  36. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/markdown.mjs +1 -7
  37. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/php.mjs +2 -16
  38. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/python.mjs +1 -3
  39. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/ruby.mjs +1 -1
  40. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/stylus.mjs +8 -214
  41. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/swift.mjs +14 -60
  42. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/typescript.mjs +18 -45
  43. package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/lib/core.mjs +8 -8
  44. package/dist/es/node_modules/.pnpm/{marked@12.0.2 → marked@12.0.1}/node_modules/marked/lib/marked.esm.mjs +1 -2
  45. package/dist/es/store/modules/copilot.mjs +8 -2
  46. package/dist/es/style.css +1 -1
  47. package/dist/es/utils/http/index.mjs +4 -0
  48. package/package.json +2 -2
  49. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue.mjs +0 -7
  50. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue2.mjs +0 -295
  51. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue3.mjs +0 -4
  52. package/dist/es/KgCopilot/CopiCanvas/FileSkeletion.vue.mjs +0 -96
  53. package/dist/es/KgCopilot/CopiCanvas/FileSkeletion.vue2.mjs +0 -4
  54. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue.mjs +0 -7
  55. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue2.mjs +0 -41
  56. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue3.mjs +0 -4
  57. package/dist/es/_virtual/_commonjs-dynamic-modules.mjs +0 -6
  58. package/dist/es/_virtual/jszip.min.mjs +0 -13
  59. package/dist/es/assets/empty.png.mjs +0 -4
  60. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/folder-opened.mjs +0 -8
  61. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/file-damage-line.mjs +0 -8
  62. package/dist/es/node_modules/.pnpm/docx-preview@0.3.3/node_modules/docx-preview/dist/docx-preview.mjs +0 -3877
  63. package/dist/es/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.mjs +0 -2649
  64. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/arrow-left.mjs +0 -0
  65. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/arrow-right.mjs +0 -0
  66. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/check.mjs +0 -0
  67. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/close.mjs +0 -0
  68. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/copy-document.mjs +0 -0
  69. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/delete.mjs +0 -0
  70. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/edit.mjs +0 -0
  71. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/notebook.mjs +0 -0
  72. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/promotion.mjs +0 -0
  73. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/reading.mjs +0 -0
  74. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.12 → @iconify-icons_ep@1.2.7}/node_modules/@iconify-icons/ep/search.mjs +0 -0
  75. /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/core.mjs +0 -0
  76. /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/django.mjs +0 -0
  77. /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/dns.mjs +0 -0
  78. /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/dos.mjs +0 -0
  79. /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/dust.mjs +0 -0
  80. /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/http.mjs +0 -0
  81. /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/nginx.mjs +0 -0
  82. /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/es/languages/xml.mjs +0 -0
  83. /package/dist/es/node_modules/.pnpm/{highlight.js@11.11.1 → highlight.js@11.9.0}/node_modules/highlight.js/styles/sunburst.css.mjs +0 -0
@@ -34,7 +34,7 @@ const MODES = (hljs) => {
34
34
  }
35
35
  };
36
36
  };
37
- const HTML_TAGS = [
37
+ const TAGS = [
38
38
  "a",
39
39
  "abbr",
40
40
  "address",
@@ -86,16 +86,11 @@ const HTML_TAGS = [
86
86
  "nav",
87
87
  "object",
88
88
  "ol",
89
- "optgroup",
90
- "option",
91
89
  "p",
92
- "picture",
93
90
  "q",
94
91
  "quote",
95
92
  "samp",
96
93
  "section",
97
- "select",
98
- "source",
99
94
  "span",
100
95
  "strong",
101
96
  "summary",
@@ -113,53 +108,6 @@ const HTML_TAGS = [
113
108
  "var",
114
109
  "video"
115
110
  ];
116
- const SVG_TAGS = [
117
- "defs",
118
- "g",
119
- "marker",
120
- "mask",
121
- "pattern",
122
- "svg",
123
- "switch",
124
- "symbol",
125
- "feBlend",
126
- "feColorMatrix",
127
- "feComponentTransfer",
128
- "feComposite",
129
- "feConvolveMatrix",
130
- "feDiffuseLighting",
131
- "feDisplacementMap",
132
- "feFlood",
133
- "feGaussianBlur",
134
- "feImage",
135
- "feMerge",
136
- "feMorphology",
137
- "feOffset",
138
- "feSpecularLighting",
139
- "feTile",
140
- "feTurbulence",
141
- "linearGradient",
142
- "radialGradient",
143
- "stop",
144
- "circle",
145
- "ellipse",
146
- "image",
147
- "line",
148
- "path",
149
- "polygon",
150
- "polyline",
151
- "rect",
152
- "text",
153
- "use",
154
- "textPath",
155
- "tspan",
156
- "foreignObject",
157
- "clipPath"
158
- ];
159
- const TAGS = [
160
- ...HTML_TAGS,
161
- ...SVG_TAGS
162
- ];
163
111
  const MEDIA_FEATURES = [
164
112
  "any-hover",
165
113
  "any-pointer",
@@ -195,7 +143,7 @@ const MEDIA_FEATURES = [
195
143
  "max-width",
196
144
  "min-height",
197
145
  "max-height"
198
- ].sort().reverse();
146
+ ];
199
147
  const PSEUDO_CLASSES = [
200
148
  "active",
201
149
  "any-link",
@@ -270,7 +218,7 @@ const PSEUDO_CLASSES = [
270
218
  "visited",
271
219
  "where"
272
220
  // where()
273
- ].sort().reverse();
221
+ ];
274
222
  const PSEUDO_ELEMENTS = [
275
223
  "after",
276
224
  "backdrop",
@@ -286,17 +234,13 @@ const PSEUDO_ELEMENTS = [
286
234
  "selection",
287
235
  "slotted",
288
236
  "spelling-error"
289
- ].sort().reverse();
237
+ ];
290
238
  const ATTRIBUTES = [
291
- "accent-color",
292
239
  "align-content",
293
240
  "align-items",
294
241
  "align-self",
295
- "alignment-baseline",
296
242
  "all",
297
- "anchor-name",
298
243
  "animation",
299
- "animation-composition",
300
244
  "animation-delay",
301
245
  "animation-direction",
302
246
  "animation-duration",
@@ -304,14 +248,7 @@ const ATTRIBUTES = [
304
248
  "animation-iteration-count",
305
249
  "animation-name",
306
250
  "animation-play-state",
307
- "animation-range",
308
- "animation-range-end",
309
- "animation-range-start",
310
- "animation-timeline",
311
251
  "animation-timing-function",
312
- "appearance",
313
- "aspect-ratio",
314
- "backdrop-filter",
315
252
  "backface-visibility",
316
253
  "background",
317
254
  "background-attachment",
@@ -321,11 +258,8 @@ const ATTRIBUTES = [
321
258
  "background-image",
322
259
  "background-origin",
323
260
  "background-position",
324
- "background-position-x",
325
- "background-position-y",
326
261
  "background-repeat",
327
262
  "background-size",
328
- "baseline-shift",
329
263
  "block-size",
330
264
  "border",
331
265
  "border-block",
@@ -348,8 +282,6 @@ const ATTRIBUTES = [
348
282
  "border-bottom-width",
349
283
  "border-collapse",
350
284
  "border-color",
351
- "border-end-end-radius",
352
- "border-end-start-radius",
353
285
  "border-image",
354
286
  "border-image-outset",
355
287
  "border-image-repeat",
@@ -378,8 +310,6 @@ const ATTRIBUTES = [
378
310
  "border-right-style",
379
311
  "border-right-width",
380
312
  "border-spacing",
381
- "border-start-end-radius",
382
- "border-start-start-radius",
383
313
  "border-style",
384
314
  "border-top",
385
315
  "border-top-color",
@@ -389,15 +319,7 @@ const ATTRIBUTES = [
389
319
  "border-top-width",
390
320
  "border-width",
391
321
  "bottom",
392
- "box-align",
393
322
  "box-decoration-break",
394
- "box-direction",
395
- "box-flex",
396
- "box-flex-group",
397
- "box-lines",
398
- "box-ordinal-group",
399
- "box-orient",
400
- "box-pack",
401
323
  "box-shadow",
402
324
  "box-sizing",
403
325
  "break-after",
@@ -410,11 +332,6 @@ const ATTRIBUTES = [
410
332
  "clip-path",
411
333
  "clip-rule",
412
334
  "color",
413
- "color-interpolation",
414
- "color-interpolation-filters",
415
- "color-profile",
416
- "color-rendering",
417
- "color-scheme",
418
335
  "column-count",
419
336
  "column-fill",
420
337
  "column-gap",
@@ -426,34 +343,17 @@ const ATTRIBUTES = [
426
343
  "column-width",
427
344
  "columns",
428
345
  "contain",
429
- "contain-intrinsic-block-size",
430
- "contain-intrinsic-height",
431
- "contain-intrinsic-inline-size",
432
- "contain-intrinsic-size",
433
- "contain-intrinsic-width",
434
- "container",
435
- "container-name",
436
- "container-type",
437
346
  "content",
438
347
  "content-visibility",
439
348
  "counter-increment",
440
349
  "counter-reset",
441
- "counter-set",
442
350
  "cue",
443
351
  "cue-after",
444
352
  "cue-before",
445
353
  "cursor",
446
- "cx",
447
- "cy",
448
354
  "direction",
449
355
  "display",
450
- "dominant-baseline",
451
356
  "empty-cells",
452
- "enable-background",
453
- "field-sizing",
454
- "fill",
455
- "fill-opacity",
456
- "fill-rule",
457
357
  "filter",
458
358
  "flex",
459
359
  "flex-basis",
@@ -463,8 +363,6 @@ const ATTRIBUTES = [
463
363
  "flex-shrink",
464
364
  "flex-wrap",
465
365
  "float",
466
- "flood-color",
467
- "flood-opacity",
468
366
  "flow",
469
367
  "font",
470
368
  "font-display",
@@ -472,32 +370,21 @@ const ATTRIBUTES = [
472
370
  "font-feature-settings",
473
371
  "font-kerning",
474
372
  "font-language-override",
475
- "font-optical-sizing",
476
- "font-palette",
477
373
  "font-size",
478
374
  "font-size-adjust",
479
- "font-smooth",
480
375
  "font-smoothing",
481
376
  "font-stretch",
482
377
  "font-style",
483
378
  "font-synthesis",
484
- "font-synthesis-position",
485
- "font-synthesis-small-caps",
486
- "font-synthesis-style",
487
- "font-synthesis-weight",
488
379
  "font-variant",
489
- "font-variant-alternates",
490
380
  "font-variant-caps",
491
381
  "font-variant-east-asian",
492
- "font-variant-emoji",
493
382
  "font-variant-ligatures",
494
383
  "font-variant-numeric",
495
384
  "font-variant-position",
496
385
  "font-variation-settings",
497
386
  "font-weight",
498
- "forced-color-adjust",
499
387
  "gap",
500
- "glyph-orientation-horizontal",
501
388
  "glyph-orientation-vertical",
502
389
  "grid",
503
390
  "grid-area",
@@ -517,36 +404,19 @@ const ATTRIBUTES = [
517
404
  "grid-template-rows",
518
405
  "hanging-punctuation",
519
406
  "height",
520
- "hyphenate-character",
521
- "hyphenate-limit-chars",
522
407
  "hyphens",
523
408
  "icon",
524
409
  "image-orientation",
525
410
  "image-rendering",
526
411
  "image-resolution",
527
412
  "ime-mode",
528
- "initial-letter",
529
- "initial-letter-align",
530
413
  "inline-size",
531
- "inset",
532
- "inset-area",
533
- "inset-block",
534
- "inset-block-end",
535
- "inset-block-start",
536
- "inset-inline",
537
- "inset-inline-end",
538
- "inset-inline-start",
539
414
  "isolation",
540
415
  "justify-content",
541
- "justify-items",
542
- "justify-self",
543
- "kerning",
544
416
  "left",
545
417
  "letter-spacing",
546
- "lighting-color",
547
418
  "line-break",
548
419
  "line-height",
549
- "line-height-step",
550
420
  "list-style",
551
421
  "list-style-image",
552
422
  "list-style-position",
@@ -562,11 +432,6 @@ const ATTRIBUTES = [
562
432
  "margin-left",
563
433
  "margin-right",
564
434
  "margin-top",
565
- "margin-trim",
566
- "marker",
567
- "marker-end",
568
- "marker-mid",
569
- "marker-start",
570
435
  "marks",
571
436
  "mask",
572
437
  "mask-border",
@@ -585,10 +450,6 @@ const ATTRIBUTES = [
585
450
  "mask-repeat",
586
451
  "mask-size",
587
452
  "mask-type",
588
- "masonry-auto-flow",
589
- "math-depth",
590
- "math-shift",
591
- "math-style",
592
453
  "max-block-size",
593
454
  "max-height",
594
455
  "max-inline-size",
@@ -607,12 +468,6 @@ const ATTRIBUTES = [
607
468
  "normal",
608
469
  "object-fit",
609
470
  "object-position",
610
- "offset",
611
- "offset-anchor",
612
- "offset-distance",
613
- "offset-path",
614
- "offset-position",
615
- "offset-rotate",
616
471
  "opacity",
617
472
  "order",
618
473
  "orphans",
@@ -622,19 +477,9 @@ const ATTRIBUTES = [
622
477
  "outline-style",
623
478
  "outline-width",
624
479
  "overflow",
625
- "overflow-anchor",
626
- "overflow-block",
627
- "overflow-clip-margin",
628
- "overflow-inline",
629
480
  "overflow-wrap",
630
481
  "overflow-x",
631
482
  "overflow-y",
632
- "overlay",
633
- "overscroll-behavior",
634
- "overscroll-behavior-block",
635
- "overscroll-behavior-inline",
636
- "overscroll-behavior-x",
637
- "overscroll-behavior-y",
638
483
  "padding",
639
484
  "padding-block",
640
485
  "padding-block-end",
@@ -646,37 +491,23 @@ const ATTRIBUTES = [
646
491
  "padding-left",
647
492
  "padding-right",
648
493
  "padding-top",
649
- "page",
650
494
  "page-break-after",
651
495
  "page-break-before",
652
496
  "page-break-inside",
653
- "paint-order",
654
497
  "pause",
655
498
  "pause-after",
656
499
  "pause-before",
657
500
  "perspective",
658
501
  "perspective-origin",
659
- "place-content",
660
- "place-items",
661
- "place-self",
662
502
  "pointer-events",
663
503
  "position",
664
- "position-anchor",
665
- "position-visibility",
666
- "print-color-adjust",
667
504
  "quotes",
668
- "r",
669
505
  "resize",
670
506
  "rest",
671
507
  "rest-after",
672
508
  "rest-before",
673
509
  "right",
674
- "rotate",
675
510
  "row-gap",
676
- "ruby-align",
677
- "ruby-position",
678
- "scale",
679
- "scroll-behavior",
680
511
  "scroll-margin",
681
512
  "scroll-margin-block",
682
513
  "scroll-margin-block-end",
@@ -702,44 +533,26 @@ const ATTRIBUTES = [
702
533
  "scroll-snap-align",
703
534
  "scroll-snap-stop",
704
535
  "scroll-snap-type",
705
- "scroll-timeline",
706
- "scroll-timeline-axis",
707
- "scroll-timeline-name",
708
536
  "scrollbar-color",
709
537
  "scrollbar-gutter",
710
538
  "scrollbar-width",
711
539
  "shape-image-threshold",
712
540
  "shape-margin",
713
541
  "shape-outside",
714
- "shape-rendering",
715
542
  "speak",
716
543
  "speak-as",
717
544
  "src",
718
545
  // @font-face
719
- "stop-color",
720
- "stop-opacity",
721
- "stroke",
722
- "stroke-dasharray",
723
- "stroke-dashoffset",
724
- "stroke-linecap",
725
- "stroke-linejoin",
726
- "stroke-miterlimit",
727
- "stroke-opacity",
728
- "stroke-width",
729
546
  "tab-size",
730
547
  "table-layout",
731
548
  "text-align",
732
549
  "text-align-all",
733
550
  "text-align-last",
734
- "text-anchor",
735
551
  "text-combine-upright",
736
552
  "text-decoration",
737
553
  "text-decoration-color",
738
554
  "text-decoration-line",
739
- "text-decoration-skip",
740
- "text-decoration-skip-ink",
741
555
  "text-decoration-style",
742
- "text-decoration-thickness",
743
556
  "text-emphasis",
744
557
  "text-emphasis-color",
745
558
  "text-emphasis-position",
@@ -750,37 +563,20 @@ const ATTRIBUTES = [
750
563
  "text-overflow",
751
564
  "text-rendering",
752
565
  "text-shadow",
753
- "text-size-adjust",
754
566
  "text-transform",
755
- "text-underline-offset",
756
567
  "text-underline-position",
757
- "text-wrap",
758
- "text-wrap-mode",
759
- "text-wrap-style",
760
- "timeline-scope",
761
568
  "top",
762
- "touch-action",
763
569
  "transform",
764
570
  "transform-box",
765
571
  "transform-origin",
766
572
  "transform-style",
767
573
  "transition",
768
- "transition-behavior",
769
574
  "transition-delay",
770
575
  "transition-duration",
771
576
  "transition-property",
772
577
  "transition-timing-function",
773
- "translate",
774
578
  "unicode-bidi",
775
- "user-modify",
776
- "user-select",
777
- "vector-effect",
778
579
  "vertical-align",
779
- "view-timeline",
780
- "view-timeline-axis",
781
- "view-timeline-inset",
782
- "view-timeline-name",
783
- "view-transition-name",
784
580
  "visibility",
785
581
  "voice-balance",
786
582
  "voice-duration",
@@ -791,7 +587,6 @@ const ATTRIBUTES = [
791
587
  "voice-stress",
792
588
  "voice-volume",
793
589
  "white-space",
794
- "white-space-collapse",
795
590
  "widows",
796
591
  "width",
797
592
  "will-change",
@@ -799,11 +594,10 @@ const ATTRIBUTES = [
799
594
  "word-spacing",
800
595
  "word-wrap",
801
596
  "writing-mode",
802
- "x",
803
- "y",
804
- "z-index",
805
- "zoom"
806
- ].sort().reverse();
597
+ "z-index"
598
+ // reverse makes sure longer attributes `font-weight` are matched fully
599
+ // instead of getting false positives on say `font`
600
+ ].reverse();
807
601
  function css(hljs) {
808
602
  const regex = hljs.regex;
809
603
  const modes = MODES(hljs);
@@ -13,14 +13,6 @@ function dart(hljs) {
13
13
  ],
14
14
  keywords: "true false null this is new super"
15
15
  };
16
- const NUMBER = {
17
- className: "number",
18
- relevance: 0,
19
- variants: [
20
- { match: /\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/ },
21
- { match: /\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/ }
22
- ]
23
- };
24
16
  const STRING = {
25
17
  className: "string",
26
18
  variants: [
@@ -83,7 +75,7 @@ function dart(hljs) {
83
75
  ]
84
76
  };
85
77
  BRACED_SUBST.contains = [
86
- NUMBER,
78
+ hljs.C_NUMBER_MODE,
87
79
  STRING
88
80
  ];
89
81
  const BUILT_IN_TYPES = [
@@ -238,7 +230,7 @@ function dart(hljs) {
238
230
  hljs.UNDERSCORE_TITLE_MODE
239
231
  ]
240
232
  },
241
- NUMBER,
233
+ hljs.C_NUMBER_MODE,
242
234
  {
243
235
  className: "meta",
244
236
  begin: "@[A-Za-z]+"
@@ -2,7 +2,7 @@ function erlang(hljs) {
2
2
  const BASIC_ATOM_RE = "[a-z'][a-zA-Z0-9_']*";
3
3
  const FUNCTION_NAME_RE = "(" + BASIC_ATOM_RE + ":" + BASIC_ATOM_RE + "|" + BASIC_ATOM_RE + ")";
4
4
  const ERLANG_RESERVED = {
5
- keyword: "after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else",
5
+ keyword: "after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",
6
6
  literal: "false true"
7
7
  };
8
8
  const COMMENT = hljs.COMMENT("%", "$");
@@ -63,33 +63,8 @@ function erlang(hljs) {
63
63
  }
64
64
  ]
65
65
  };
66
- const CHAR_LITERAL = {
67
- scope: "string",
68
- match: /\$(\\([^0-9]|[0-9]{1,3}|)|.)/
69
- };
70
- const TRIPLE_QUOTE = {
71
- scope: "string",
72
- match: /"""("*)(?!")[\s\S]*?"""\1/
73
- };
74
- const SIGIL = {
75
- scope: "string",
76
- contains: [hljs.BACKSLASH_ESCAPE],
77
- variants: [
78
- { match: /~\w?"""("*)(?!")[\s\S]*?"""\1/ },
79
- { begin: /~\w?\(/, end: /\)/ },
80
- { begin: /~\w?\[/, end: /\]/ },
81
- { begin: /~\w?{/, end: /}/ },
82
- { begin: /~\w?</, end: />/ },
83
- { begin: /~\w?\//, end: /\// },
84
- { begin: /~\w?\|/, end: /\|/ },
85
- { begin: /~\w?'/, end: /'/ },
86
- { begin: /~\w?"/, end: /"/ },
87
- { begin: /~\w?`/, end: /`/ },
88
- { begin: /~\w?#/, end: /#/ }
89
- ]
90
- };
91
66
  const BLOCK_STATEMENTS = {
92
- beginKeywords: "fun receive if try case maybe",
67
+ beginKeywords: "fun receive if try case",
93
68
  end: "end",
94
69
  keywords: ERLANG_RESERVED
95
70
  };
@@ -99,30 +74,24 @@ function erlang(hljs) {
99
74
  hljs.inherit(hljs.APOS_STRING_MODE, { className: "" }),
100
75
  BLOCK_STATEMENTS,
101
76
  FUNCTION_CALL,
102
- SIGIL,
103
- TRIPLE_QUOTE,
104
77
  hljs.QUOTE_STRING_MODE,
105
78
  NUMBER,
106
79
  TUPLE,
107
80
  VAR1,
108
81
  VAR2,
109
- RECORD_ACCESS,
110
- CHAR_LITERAL
82
+ RECORD_ACCESS
111
83
  ];
112
84
  const BASIC_MODES = [
113
85
  COMMENT,
114
86
  NAMED_FUN,
115
87
  BLOCK_STATEMENTS,
116
88
  FUNCTION_CALL,
117
- SIGIL,
118
- TRIPLE_QUOTE,
119
89
  hljs.QUOTE_STRING_MODE,
120
90
  NUMBER,
121
91
  TUPLE,
122
92
  VAR1,
123
93
  VAR2,
124
- RECORD_ACCESS,
125
- CHAR_LITERAL
94
+ RECORD_ACCESS
126
95
  ];
127
96
  FUNCTION_CALL.contains[1].contains = BASIC_MODES;
128
97
  TUPLE.contains = BASIC_MODES;
@@ -137,7 +106,6 @@ function erlang(hljs) {
137
106
  "-author",
138
107
  "-copyright",
139
108
  "-doc",
140
- "-moduledoc",
141
109
  "-vsn",
142
110
  "-import",
143
111
  "-include",
@@ -149,9 +117,7 @@ function erlang(hljs) {
149
117
  "-file",
150
118
  "-behaviour",
151
119
  "-behavior",
152
- "-spec",
153
- "-on_load",
154
- "-nifs"
120
+ "-spec"
155
121
  ];
156
122
  const PARAMS = {
157
123
  className: "params",
@@ -192,22 +158,14 @@ function erlang(hljs) {
192
158
  $pattern: "-" + hljs.IDENT_RE,
193
159
  keyword: DIRECTIVES.map((x) => `${x}|1.5`).join(" ")
194
160
  },
195
- contains: [
196
- PARAMS,
197
- SIGIL,
198
- TRIPLE_QUOTE,
199
- hljs.QUOTE_STRING_MODE
200
- ]
161
+ contains: [PARAMS]
201
162
  },
202
163
  NUMBER,
203
- SIGIL,
204
- TRIPLE_QUOTE,
205
164
  hljs.QUOTE_STRING_MODE,
206
165
  RECORD_ACCESS,
207
166
  VAR1,
208
167
  VAR2,
209
168
  TUPLE,
210
- CHAR_LITERAL,
211
169
  { begin: /\.$/ }
212
170
  // relevance booster
213
171
  ]
@@ -100,30 +100,10 @@ function go(hljs) {
100
100
  className: "number",
101
101
  variants: [
102
102
  {
103
- match: /-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,
104
- // hex without a present digit before . (making a digit afterwards required)
105
- relevance: 0
103
+ begin: hljs.C_NUMBER_RE + "[i]",
104
+ relevance: 1
106
105
  },
107
- {
108
- match: /-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,
109
- // hex with a present digit before . (making a digit afterwards optional)
110
- relevance: 0
111
- },
112
- {
113
- match: /-?\b0[oO](_?[0-7])*i?/,
114
- // leading 0o octal
115
- relevance: 0
116
- },
117
- {
118
- match: /-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,
119
- // decimal without a present digit before . (making a digit afterwards required)
120
- relevance: 0
121
- },
122
- {
123
- match: /-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,
124
- // decimal with a present digit before . (making a digit afterwards optional)
125
- relevance: 0
126
- }
106
+ hljs.C_NUMBER_MODE
127
107
  ]
128
108
  },
129
109
  {
@@ -77,9 +77,7 @@ function java(hljs) {
77
77
  "do",
78
78
  "sealed",
79
79
  "yield",
80
- "permits",
81
- "goto",
82
- "when"
80
+ "permits"
83
81
  ];
84
82
  const BUILT_INS = [
85
83
  "super",