@forsakringskassan/docs-generator 2.14.4 → 2.15.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.
@@ -26937,7 +26937,7 @@ function requireCore () {
26937
26937
  return mode;
26938
26938
  }
26939
26939
 
26940
- var version = "11.10.0";
26940
+ var version = "11.11.0";
26941
26941
 
26942
26942
  class HTMLInjectionError extends Error {
26943
26943
  constructor(reason, html) {
@@ -27464,6 +27464,7 @@ function requireCore () {
27464
27464
  // first handler (when ignoreIllegals is true)
27465
27465
  if (match.type === "illegal" && lexeme === "") {
27466
27466
  // advance so we aren't stuck in an infinite loop
27467
+ modeBuffer += "\n";
27467
27468
  return 1;
27468
27469
  }
27469
27470
 
@@ -27757,8 +27758,17 @@ function requireCore () {
27757
27758
  * auto-highlights all pre>code elements on the page
27758
27759
  */
27759
27760
  function highlightAll() {
27761
+ function boot() {
27762
+ // if a highlight was requested before DOM was loaded, do now
27763
+ highlightAll();
27764
+ }
27765
+
27760
27766
  // if we are called too early in the loading process
27761
27767
  if (document.readyState === "loading") {
27768
+ // make sure the event listener is only added once
27769
+ if (!wantsHighlight) {
27770
+ window.addEventListener('DOMContentLoaded', boot, false);
27771
+ }
27762
27772
  wantsHighlight = true;
27763
27773
  return;
27764
27774
  }
@@ -27767,16 +27777,6 @@ function requireCore () {
27767
27777
  blocks.forEach(highlightElement);
27768
27778
  }
27769
27779
 
27770
- function boot() {
27771
- // if a highlight was requested before DOM was loaded, do now
27772
- if (wantsHighlight) highlightAll();
27773
- }
27774
-
27775
- // make sure we are in the browser environment
27776
- if (typeof window !== 'undefined' && window.addEventListener) {
27777
- window.addEventListener('DOMContentLoaded', boot, false);
27778
- }
27779
-
27780
27780
  /**
27781
27781
  * Register a language grammar module
27782
27782
  *
@@ -28366,6 +28366,7 @@ function requireBash () {
28366
28366
  "else",
28367
28367
  "elif",
28368
28368
  "fi",
28369
+ "time",
28369
28370
  "for",
28370
28371
  "while",
28371
28372
  "until",
@@ -28374,6 +28375,7 @@ function requireBash () {
28374
28375
  "done",
28375
28376
  "case",
28376
28377
  "esac",
28378
+ "coproc",
28377
28379
  "function",
28378
28380
  "select"
28379
28381
  ];
@@ -28716,13 +28718,14 @@ function requireC () {
28716
28718
  const NUMBERS = {
28717
28719
  className: 'number',
28718
28720
  variants: [
28719
- { begin: '\\b(0b[01\']+)' },
28720
- { begin: '(-?)\\b([\\d\']+(\\.[\\d\']*)?|\\.[\\d\']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)' },
28721
- { begin: '(-?)(\\b0[xX][a-fA-F0-9\']+|(\\b[\\d\']+(\\.[\\d\']*)?|\\.[\\d\']+)([eE][-+]?[\\d\']+)?)' }
28722
- ],
28721
+ { match: /\b(0b[01']+)/ },
28722
+ { match: /(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/ },
28723
+ { match: /(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/ },
28724
+ { match: /(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/ }
28725
+ ],
28723
28726
  relevance: 0
28724
- };
28725
-
28727
+ };
28728
+
28726
28729
  const PREPROCESSOR = {
28727
28730
  className: 'meta',
28728
28731
  begin: /#\s*[a-z]+\b/,
@@ -29247,6 +29250,8 @@ function requireCpp () {
29247
29250
  'counting_semaphore',
29248
29251
  'deque',
29249
29252
  'false_type',
29253
+ 'flat_map',
29254
+ 'flat_set',
29250
29255
  'future',
29251
29256
  'imaginary',
29252
29257
  'initializer_list',
@@ -29572,7 +29577,7 @@ function requireCpp () {
29572
29577
  [
29573
29578
  PREPROCESSOR,
29574
29579
  { // containers: ie, `vector <int> rooms (9);`
29575
- begin: '\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)',
29580
+ begin: '\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)',
29576
29581
  end: '>',
29577
29582
  keywords: CPP_KEYWORDS,
29578
29583
  contains: [
@@ -29729,11 +29734,14 @@ function requireCsharp () {
29729
29734
  'alias',
29730
29735
  'and',
29731
29736
  'ascending',
29737
+ 'args',
29732
29738
  'async',
29733
29739
  'await',
29734
29740
  'by',
29735
29741
  'descending',
29742
+ 'dynamic',
29736
29743
  'equals',
29744
+ 'file',
29737
29745
  'from',
29738
29746
  'get',
29739
29747
  'global',
@@ -29749,7 +29757,10 @@ function requireCsharp () {
29749
29757
  'or',
29750
29758
  'orderby',
29751
29759
  'partial',
29760
+ 'record',
29752
29761
  'remove',
29762
+ 'required',
29763
+ 'scoped',
29753
29764
  'select',
29754
29765
  'set',
29755
29766
  'unmanaged',
@@ -30327,7 +30338,9 @@ function requireCss () {
30327
30338
  'align-self',
30328
30339
  'alignment-baseline',
30329
30340
  'all',
30341
+ 'anchor-name',
30330
30342
  'animation',
30343
+ 'animation-composition',
30331
30344
  'animation-delay',
30332
30345
  'animation-direction',
30333
30346
  'animation-duration',
@@ -30335,8 +30348,14 @@ function requireCss () {
30335
30348
  'animation-iteration-count',
30336
30349
  'animation-name',
30337
30350
  'animation-play-state',
30351
+ 'animation-range',
30352
+ 'animation-range-end',
30353
+ 'animation-range-start',
30354
+ 'animation-timeline',
30338
30355
  'animation-timing-function',
30339
30356
  'appearance',
30357
+ 'aspect-ratio',
30358
+ 'backdrop-filter',
30340
30359
  'backface-visibility',
30341
30360
  'background',
30342
30361
  'background-attachment',
@@ -30346,6 +30365,8 @@ function requireCss () {
30346
30365
  'background-image',
30347
30366
  'background-origin',
30348
30367
  'background-position',
30368
+ 'background-position-x',
30369
+ 'background-position-y',
30349
30370
  'background-repeat',
30350
30371
  'background-size',
30351
30372
  'baseline-shift',
@@ -30371,6 +30392,8 @@ function requireCss () {
30371
30392
  'border-bottom-width',
30372
30393
  'border-collapse',
30373
30394
  'border-color',
30395
+ 'border-end-end-radius',
30396
+ 'border-end-start-radius',
30374
30397
  'border-image',
30375
30398
  'border-image-outset',
30376
30399
  'border-image-repeat',
@@ -30395,8 +30418,6 @@ function requireCss () {
30395
30418
  'border-left-width',
30396
30419
  'border-radius',
30397
30420
  'border-right',
30398
- 'border-end-end-radius',
30399
- 'border-end-start-radius',
30400
30421
  'border-right-color',
30401
30422
  'border-right-style',
30402
30423
  'border-right-width',
@@ -30412,14 +30433,20 @@ function requireCss () {
30412
30433
  'border-top-width',
30413
30434
  'border-width',
30414
30435
  'bottom',
30436
+ 'box-align',
30415
30437
  'box-decoration-break',
30438
+ 'box-direction',
30439
+ 'box-flex',
30440
+ 'box-flex-group',
30441
+ 'box-lines',
30442
+ 'box-ordinal-group',
30443
+ 'box-orient',
30444
+ 'box-pack',
30416
30445
  'box-shadow',
30417
30446
  'box-sizing',
30418
30447
  'break-after',
30419
30448
  'break-before',
30420
30449
  'break-inside',
30421
- 'cx',
30422
- 'cy',
30423
30450
  'caption-side',
30424
30451
  'caret-color',
30425
30452
  'clear',
@@ -30443,19 +30470,31 @@ function requireCss () {
30443
30470
  'column-width',
30444
30471
  'columns',
30445
30472
  'contain',
30473
+ 'contain-intrinsic-block-size',
30474
+ 'contain-intrinsic-height',
30475
+ 'contain-intrinsic-inline-size',
30476
+ 'contain-intrinsic-size',
30477
+ 'contain-intrinsic-width',
30478
+ 'container',
30479
+ 'container-name',
30480
+ 'container-type',
30446
30481
  'content',
30447
30482
  'content-visibility',
30448
30483
  'counter-increment',
30449
30484
  'counter-reset',
30485
+ 'counter-set',
30450
30486
  'cue',
30451
30487
  'cue-after',
30452
30488
  'cue-before',
30453
30489
  'cursor',
30490
+ 'cx',
30491
+ 'cy',
30454
30492
  'direction',
30455
30493
  'display',
30456
30494
  'dominant-baseline',
30457
30495
  'empty-cells',
30458
30496
  'enable-background',
30497
+ 'field-sizing',
30459
30498
  'fill',
30460
30499
  'fill-opacity',
30461
30500
  'fill-rule',
@@ -30468,29 +30507,39 @@ function requireCss () {
30468
30507
  'flex-shrink',
30469
30508
  'flex-wrap',
30470
30509
  'float',
30471
- 'flow',
30472
30510
  'flood-color',
30473
30511
  'flood-opacity',
30512
+ 'flow',
30474
30513
  'font',
30475
30514
  'font-display',
30476
30515
  'font-family',
30477
30516
  'font-feature-settings',
30478
30517
  'font-kerning',
30479
30518
  'font-language-override',
30519
+ 'font-optical-sizing',
30520
+ 'font-palette',
30480
30521
  'font-size',
30481
30522
  'font-size-adjust',
30523
+ 'font-smooth',
30482
30524
  'font-smoothing',
30483
30525
  'font-stretch',
30484
30526
  'font-style',
30485
30527
  'font-synthesis',
30528
+ 'font-synthesis-position',
30529
+ 'font-synthesis-small-caps',
30530
+ 'font-synthesis-style',
30531
+ 'font-synthesis-weight',
30486
30532
  'font-variant',
30533
+ 'font-variant-alternates',
30487
30534
  'font-variant-caps',
30488
30535
  'font-variant-east-asian',
30536
+ 'font-variant-emoji',
30489
30537
  'font-variant-ligatures',
30490
30538
  'font-variant-numeric',
30491
30539
  'font-variant-position',
30492
30540
  'font-variation-settings',
30493
30541
  'font-weight',
30542
+ 'forced-color-adjust',
30494
30543
  'gap',
30495
30544
  'glyph-orientation-horizontal',
30496
30545
  'glyph-orientation-vertical',
@@ -30512,14 +30561,19 @@ function requireCss () {
30512
30561
  'grid-template-rows',
30513
30562
  'hanging-punctuation',
30514
30563
  'height',
30564
+ 'hyphenate-character',
30565
+ 'hyphenate-limit-chars',
30515
30566
  'hyphens',
30516
30567
  'icon',
30517
30568
  'image-orientation',
30518
30569
  'image-rendering',
30519
30570
  'image-resolution',
30520
30571
  'ime-mode',
30572
+ 'initial-letter',
30573
+ 'initial-letter-align',
30521
30574
  'inline-size',
30522
30575
  'inset',
30576
+ 'inset-area',
30523
30577
  'inset-block',
30524
30578
  'inset-block-end',
30525
30579
  'inset-block-start',
@@ -30527,24 +30581,20 @@ function requireCss () {
30527
30581
  'inset-inline-end',
30528
30582
  'inset-inline-start',
30529
30583
  'isolation',
30530
- 'kerning',
30531
30584
  'justify-content',
30532
30585
  'justify-items',
30533
30586
  'justify-self',
30587
+ 'kerning',
30534
30588
  'left',
30535
30589
  'letter-spacing',
30536
30590
  'lighting-color',
30537
30591
  'line-break',
30538
30592
  'line-height',
30593
+ 'line-height-step',
30539
30594
  'list-style',
30540
30595
  'list-style-image',
30541
30596
  'list-style-position',
30542
30597
  'list-style-type',
30543
- 'marker',
30544
- 'marker-end',
30545
- 'marker-mid',
30546
- 'marker-start',
30547
- 'mask',
30548
30598
  'margin',
30549
30599
  'margin-block',
30550
30600
  'margin-block-end',
@@ -30556,6 +30606,11 @@ function requireCss () {
30556
30606
  'margin-left',
30557
30607
  'margin-right',
30558
30608
  'margin-top',
30609
+ 'margin-trim',
30610
+ 'marker',
30611
+ 'marker-end',
30612
+ 'marker-mid',
30613
+ 'marker-start',
30559
30614
  'marks',
30560
30615
  'mask',
30561
30616
  'mask-border',
@@ -30574,6 +30629,10 @@ function requireCss () {
30574
30629
  'mask-repeat',
30575
30630
  'mask-size',
30576
30631
  'mask-type',
30632
+ 'masonry-auto-flow',
30633
+ 'math-depth',
30634
+ 'math-shift',
30635
+ 'math-style',
30577
30636
  'max-block-size',
30578
30637
  'max-height',
30579
30638
  'max-inline-size',
@@ -30592,6 +30651,12 @@ function requireCss () {
30592
30651
  'normal',
30593
30652
  'object-fit',
30594
30653
  'object-position',
30654
+ 'offset',
30655
+ 'offset-anchor',
30656
+ 'offset-distance',
30657
+ 'offset-path',
30658
+ 'offset-position',
30659
+ 'offset-rotate',
30595
30660
  'opacity',
30596
30661
  'order',
30597
30662
  'orphans',
@@ -30601,9 +30666,19 @@ function requireCss () {
30601
30666
  'outline-style',
30602
30667
  'outline-width',
30603
30668
  'overflow',
30669
+ 'overflow-anchor',
30670
+ 'overflow-block',
30671
+ 'overflow-clip-margin',
30672
+ 'overflow-inline',
30604
30673
  'overflow-wrap',
30605
30674
  'overflow-x',
30606
30675
  'overflow-y',
30676
+ 'overlay',
30677
+ 'overscroll-behavior',
30678
+ 'overscroll-behavior-block',
30679
+ 'overscroll-behavior-inline',
30680
+ 'overscroll-behavior-x',
30681
+ 'overscroll-behavior-y',
30607
30682
  'padding',
30608
30683
  'padding-block',
30609
30684
  'padding-block-end',
@@ -30615,16 +30690,24 @@ function requireCss () {
30615
30690
  'padding-left',
30616
30691
  'padding-right',
30617
30692
  'padding-top',
30693
+ 'page',
30618
30694
  'page-break-after',
30619
30695
  'page-break-before',
30620
30696
  'page-break-inside',
30697
+ 'paint-order',
30621
30698
  'pause',
30622
30699
  'pause-after',
30623
30700
  'pause-before',
30624
30701
  'perspective',
30625
30702
  'perspective-origin',
30703
+ 'place-content',
30704
+ 'place-items',
30705
+ 'place-self',
30626
30706
  'pointer-events',
30627
30707
  'position',
30708
+ 'position-anchor',
30709
+ 'position-visibility',
30710
+ 'print-color-adjust',
30628
30711
  'quotes',
30629
30712
  'r',
30630
30713
  'resize',
@@ -30634,7 +30717,10 @@ function requireCss () {
30634
30717
  'right',
30635
30718
  'rotate',
30636
30719
  'row-gap',
30720
+ 'ruby-align',
30721
+ 'ruby-position',
30637
30722
  'scale',
30723
+ 'scroll-behavior',
30638
30724
  'scroll-margin',
30639
30725
  'scroll-margin-block',
30640
30726
  'scroll-margin-block-end',
@@ -30660,6 +30746,9 @@ function requireCss () {
30660
30746
  'scroll-snap-align',
30661
30747
  'scroll-snap-stop',
30662
30748
  'scroll-snap-type',
30749
+ 'scroll-timeline',
30750
+ 'scroll-timeline-axis',
30751
+ 'scroll-timeline-name',
30663
30752
  'scrollbar-color',
30664
30753
  'scrollbar-gutter',
30665
30754
  'scrollbar-width',
@@ -30667,6 +30756,9 @@ function requireCss () {
30667
30756
  'shape-margin',
30668
30757
  'shape-outside',
30669
30758
  'shape-rendering',
30759
+ 'speak',
30760
+ 'speak-as',
30761
+ 'src', // @font-face
30670
30762
  'stop-color',
30671
30763
  'stop-opacity',
30672
30764
  'stroke',
@@ -30677,19 +30769,17 @@ function requireCss () {
30677
30769
  'stroke-miterlimit',
30678
30770
  'stroke-opacity',
30679
30771
  'stroke-width',
30680
- 'speak',
30681
- 'speak-as',
30682
- 'src', // @font-face
30683
30772
  'tab-size',
30684
30773
  'table-layout',
30685
- 'text-anchor',
30686
30774
  'text-align',
30687
30775
  'text-align-all',
30688
30776
  'text-align-last',
30777
+ 'text-anchor',
30689
30778
  'text-combine-upright',
30690
30779
  'text-decoration',
30691
30780
  'text-decoration-color',
30692
30781
  'text-decoration-line',
30782
+ 'text-decoration-skip',
30693
30783
  'text-decoration-skip-ink',
30694
30784
  'text-decoration-style',
30695
30785
  'text-decoration-thickness',
@@ -30703,23 +30793,37 @@ function requireCss () {
30703
30793
  'text-overflow',
30704
30794
  'text-rendering',
30705
30795
  'text-shadow',
30796
+ 'text-size-adjust',
30706
30797
  'text-transform',
30707
30798
  'text-underline-offset',
30708
30799
  'text-underline-position',
30800
+ 'text-wrap',
30801
+ 'text-wrap-mode',
30802
+ 'text-wrap-style',
30803
+ 'timeline-scope',
30709
30804
  'top',
30805
+ 'touch-action',
30710
30806
  'transform',
30711
30807
  'transform-box',
30712
30808
  'transform-origin',
30713
30809
  'transform-style',
30714
30810
  'transition',
30811
+ 'transition-behavior',
30715
30812
  'transition-delay',
30716
30813
  'transition-duration',
30717
30814
  'transition-property',
30718
30815
  'transition-timing-function',
30719
30816
  'translate',
30720
30817
  'unicode-bidi',
30818
+ 'user-modify',
30819
+ 'user-select',
30721
30820
  'vector-effect',
30722
30821
  'vertical-align',
30822
+ 'view-timeline',
30823
+ 'view-timeline-axis',
30824
+ 'view-timeline-inset',
30825
+ 'view-timeline-name',
30826
+ 'view-transition-name',
30723
30827
  'visibility',
30724
30828
  'voice-balance',
30725
30829
  'voice-duration',
@@ -30730,6 +30834,7 @@ function requireCss () {
30730
30834
  'voice-stress',
30731
30835
  'voice-volume',
30732
30836
  'white-space',
30837
+ 'white-space-collapse',
30733
30838
  'widows',
30734
30839
  'width',
30735
30840
  'will-change',
@@ -30739,7 +30844,8 @@ function requireCss () {
30739
30844
  'writing-mode',
30740
30845
  'x',
30741
30846
  'y',
30742
- 'z-index'
30847
+ 'z-index',
30848
+ 'zoom'
30743
30849
  ].sort().reverse();
30744
30850
 
30745
30851
  /*
@@ -31568,7 +31674,7 @@ function requireRuby () {
31568
31674
  },
31569
31675
  {
31570
31676
  className: 'params',
31571
- begin: /\|/,
31677
+ begin: /\|(?!=)/,
31572
31678
  end: /\|/,
31573
31679
  excludeBegin: true,
31574
31680
  excludeEnd: true,
@@ -32166,7 +32272,8 @@ function requireJava () {
32166
32272
  'sealed',
32167
32273
  'yield',
32168
32274
  'permits',
32169
- 'goto'
32275
+ 'goto',
32276
+ 'when'
32170
32277
  ];
32171
32278
 
32172
32279
  const BUILT_INS = [
@@ -32396,7 +32503,9 @@ function requireJavascript () {
32396
32503
  "import",
32397
32504
  "from",
32398
32505
  "export",
32399
- "extends"
32506
+ "extends",
32507
+ // It's reached stage 3, which is "recommended for implementation":
32508
+ "using"
32400
32509
  ];
32401
32510
  const LITERALS = [
32402
32511
  "true",
@@ -32778,7 +32887,7 @@ function requireJavascript () {
32778
32887
  const PARAMS = {
32779
32888
  className: 'params',
32780
32889
  // convert this to negative lookbehind in v12
32781
- begin: /(\s*)\(/, // to match the parms with
32890
+ begin: /(\s*)\(/, // to match the parms with
32782
32891
  end: /\)/,
32783
32892
  excludeBegin: true,
32784
32893
  excludeEnd: true,
@@ -32989,8 +33098,8 @@ function requireJavascript () {
32989
33098
  NUMBER,
32990
33099
  CLASS_REFERENCE,
32991
33100
  {
32992
- className: 'attr',
32993
- begin: IDENT_RE$1 + regex.lookahead(':'),
33101
+ scope: 'attr',
33102
+ match: IDENT_RE$1 + regex.lookahead(':'),
32994
33103
  relevance: 0
32995
33104
  },
32996
33105
  FUNCTION_VARIABLE,
@@ -33790,7 +33899,9 @@ function requireLess () {
33790
33899
  'align-self',
33791
33900
  'alignment-baseline',
33792
33901
  'all',
33902
+ 'anchor-name',
33793
33903
  'animation',
33904
+ 'animation-composition',
33794
33905
  'animation-delay',
33795
33906
  'animation-direction',
33796
33907
  'animation-duration',
@@ -33798,8 +33909,14 @@ function requireLess () {
33798
33909
  'animation-iteration-count',
33799
33910
  'animation-name',
33800
33911
  'animation-play-state',
33912
+ 'animation-range',
33913
+ 'animation-range-end',
33914
+ 'animation-range-start',
33915
+ 'animation-timeline',
33801
33916
  'animation-timing-function',
33802
33917
  'appearance',
33918
+ 'aspect-ratio',
33919
+ 'backdrop-filter',
33803
33920
  'backface-visibility',
33804
33921
  'background',
33805
33922
  'background-attachment',
@@ -33809,6 +33926,8 @@ function requireLess () {
33809
33926
  'background-image',
33810
33927
  'background-origin',
33811
33928
  'background-position',
33929
+ 'background-position-x',
33930
+ 'background-position-y',
33812
33931
  'background-repeat',
33813
33932
  'background-size',
33814
33933
  'baseline-shift',
@@ -33834,6 +33953,8 @@ function requireLess () {
33834
33953
  'border-bottom-width',
33835
33954
  'border-collapse',
33836
33955
  'border-color',
33956
+ 'border-end-end-radius',
33957
+ 'border-end-start-radius',
33837
33958
  'border-image',
33838
33959
  'border-image-outset',
33839
33960
  'border-image-repeat',
@@ -33858,8 +33979,6 @@ function requireLess () {
33858
33979
  'border-left-width',
33859
33980
  'border-radius',
33860
33981
  'border-right',
33861
- 'border-end-end-radius',
33862
- 'border-end-start-radius',
33863
33982
  'border-right-color',
33864
33983
  'border-right-style',
33865
33984
  'border-right-width',
@@ -33875,14 +33994,20 @@ function requireLess () {
33875
33994
  'border-top-width',
33876
33995
  'border-width',
33877
33996
  'bottom',
33997
+ 'box-align',
33878
33998
  'box-decoration-break',
33999
+ 'box-direction',
34000
+ 'box-flex',
34001
+ 'box-flex-group',
34002
+ 'box-lines',
34003
+ 'box-ordinal-group',
34004
+ 'box-orient',
34005
+ 'box-pack',
33879
34006
  'box-shadow',
33880
34007
  'box-sizing',
33881
34008
  'break-after',
33882
34009
  'break-before',
33883
34010
  'break-inside',
33884
- 'cx',
33885
- 'cy',
33886
34011
  'caption-side',
33887
34012
  'caret-color',
33888
34013
  'clear',
@@ -33906,19 +34031,31 @@ function requireLess () {
33906
34031
  'column-width',
33907
34032
  'columns',
33908
34033
  'contain',
34034
+ 'contain-intrinsic-block-size',
34035
+ 'contain-intrinsic-height',
34036
+ 'contain-intrinsic-inline-size',
34037
+ 'contain-intrinsic-size',
34038
+ 'contain-intrinsic-width',
34039
+ 'container',
34040
+ 'container-name',
34041
+ 'container-type',
33909
34042
  'content',
33910
34043
  'content-visibility',
33911
34044
  'counter-increment',
33912
34045
  'counter-reset',
34046
+ 'counter-set',
33913
34047
  'cue',
33914
34048
  'cue-after',
33915
34049
  'cue-before',
33916
34050
  'cursor',
34051
+ 'cx',
34052
+ 'cy',
33917
34053
  'direction',
33918
34054
  'display',
33919
34055
  'dominant-baseline',
33920
34056
  'empty-cells',
33921
34057
  'enable-background',
34058
+ 'field-sizing',
33922
34059
  'fill',
33923
34060
  'fill-opacity',
33924
34061
  'fill-rule',
@@ -33931,29 +34068,39 @@ function requireLess () {
33931
34068
  'flex-shrink',
33932
34069
  'flex-wrap',
33933
34070
  'float',
33934
- 'flow',
33935
34071
  'flood-color',
33936
34072
  'flood-opacity',
34073
+ 'flow',
33937
34074
  'font',
33938
34075
  'font-display',
33939
34076
  'font-family',
33940
34077
  'font-feature-settings',
33941
34078
  'font-kerning',
33942
34079
  'font-language-override',
34080
+ 'font-optical-sizing',
34081
+ 'font-palette',
33943
34082
  'font-size',
33944
34083
  'font-size-adjust',
34084
+ 'font-smooth',
33945
34085
  'font-smoothing',
33946
34086
  'font-stretch',
33947
34087
  'font-style',
33948
34088
  'font-synthesis',
34089
+ 'font-synthesis-position',
34090
+ 'font-synthesis-small-caps',
34091
+ 'font-synthesis-style',
34092
+ 'font-synthesis-weight',
33949
34093
  'font-variant',
34094
+ 'font-variant-alternates',
33950
34095
  'font-variant-caps',
33951
34096
  'font-variant-east-asian',
34097
+ 'font-variant-emoji',
33952
34098
  'font-variant-ligatures',
33953
34099
  'font-variant-numeric',
33954
34100
  'font-variant-position',
33955
34101
  'font-variation-settings',
33956
34102
  'font-weight',
34103
+ 'forced-color-adjust',
33957
34104
  'gap',
33958
34105
  'glyph-orientation-horizontal',
33959
34106
  'glyph-orientation-vertical',
@@ -33975,14 +34122,19 @@ function requireLess () {
33975
34122
  'grid-template-rows',
33976
34123
  'hanging-punctuation',
33977
34124
  'height',
34125
+ 'hyphenate-character',
34126
+ 'hyphenate-limit-chars',
33978
34127
  'hyphens',
33979
34128
  'icon',
33980
34129
  'image-orientation',
33981
34130
  'image-rendering',
33982
34131
  'image-resolution',
33983
34132
  'ime-mode',
34133
+ 'initial-letter',
34134
+ 'initial-letter-align',
33984
34135
  'inline-size',
33985
34136
  'inset',
34137
+ 'inset-area',
33986
34138
  'inset-block',
33987
34139
  'inset-block-end',
33988
34140
  'inset-block-start',
@@ -33990,24 +34142,20 @@ function requireLess () {
33990
34142
  'inset-inline-end',
33991
34143
  'inset-inline-start',
33992
34144
  'isolation',
33993
- 'kerning',
33994
34145
  'justify-content',
33995
34146
  'justify-items',
33996
34147
  'justify-self',
34148
+ 'kerning',
33997
34149
  'left',
33998
34150
  'letter-spacing',
33999
34151
  'lighting-color',
34000
34152
  'line-break',
34001
34153
  'line-height',
34154
+ 'line-height-step',
34002
34155
  'list-style',
34003
34156
  'list-style-image',
34004
34157
  'list-style-position',
34005
34158
  'list-style-type',
34006
- 'marker',
34007
- 'marker-end',
34008
- 'marker-mid',
34009
- 'marker-start',
34010
- 'mask',
34011
34159
  'margin',
34012
34160
  'margin-block',
34013
34161
  'margin-block-end',
@@ -34019,6 +34167,11 @@ function requireLess () {
34019
34167
  'margin-left',
34020
34168
  'margin-right',
34021
34169
  'margin-top',
34170
+ 'margin-trim',
34171
+ 'marker',
34172
+ 'marker-end',
34173
+ 'marker-mid',
34174
+ 'marker-start',
34022
34175
  'marks',
34023
34176
  'mask',
34024
34177
  'mask-border',
@@ -34037,6 +34190,10 @@ function requireLess () {
34037
34190
  'mask-repeat',
34038
34191
  'mask-size',
34039
34192
  'mask-type',
34193
+ 'masonry-auto-flow',
34194
+ 'math-depth',
34195
+ 'math-shift',
34196
+ 'math-style',
34040
34197
  'max-block-size',
34041
34198
  'max-height',
34042
34199
  'max-inline-size',
@@ -34055,6 +34212,12 @@ function requireLess () {
34055
34212
  'normal',
34056
34213
  'object-fit',
34057
34214
  'object-position',
34215
+ 'offset',
34216
+ 'offset-anchor',
34217
+ 'offset-distance',
34218
+ 'offset-path',
34219
+ 'offset-position',
34220
+ 'offset-rotate',
34058
34221
  'opacity',
34059
34222
  'order',
34060
34223
  'orphans',
@@ -34064,9 +34227,19 @@ function requireLess () {
34064
34227
  'outline-style',
34065
34228
  'outline-width',
34066
34229
  'overflow',
34230
+ 'overflow-anchor',
34231
+ 'overflow-block',
34232
+ 'overflow-clip-margin',
34233
+ 'overflow-inline',
34067
34234
  'overflow-wrap',
34068
34235
  'overflow-x',
34069
34236
  'overflow-y',
34237
+ 'overlay',
34238
+ 'overscroll-behavior',
34239
+ 'overscroll-behavior-block',
34240
+ 'overscroll-behavior-inline',
34241
+ 'overscroll-behavior-x',
34242
+ 'overscroll-behavior-y',
34070
34243
  'padding',
34071
34244
  'padding-block',
34072
34245
  'padding-block-end',
@@ -34078,16 +34251,24 @@ function requireLess () {
34078
34251
  'padding-left',
34079
34252
  'padding-right',
34080
34253
  'padding-top',
34254
+ 'page',
34081
34255
  'page-break-after',
34082
34256
  'page-break-before',
34083
34257
  'page-break-inside',
34258
+ 'paint-order',
34084
34259
  'pause',
34085
34260
  'pause-after',
34086
34261
  'pause-before',
34087
34262
  'perspective',
34088
34263
  'perspective-origin',
34264
+ 'place-content',
34265
+ 'place-items',
34266
+ 'place-self',
34089
34267
  'pointer-events',
34090
34268
  'position',
34269
+ 'position-anchor',
34270
+ 'position-visibility',
34271
+ 'print-color-adjust',
34091
34272
  'quotes',
34092
34273
  'r',
34093
34274
  'resize',
@@ -34097,7 +34278,10 @@ function requireLess () {
34097
34278
  'right',
34098
34279
  'rotate',
34099
34280
  'row-gap',
34281
+ 'ruby-align',
34282
+ 'ruby-position',
34100
34283
  'scale',
34284
+ 'scroll-behavior',
34101
34285
  'scroll-margin',
34102
34286
  'scroll-margin-block',
34103
34287
  'scroll-margin-block-end',
@@ -34123,6 +34307,9 @@ function requireLess () {
34123
34307
  'scroll-snap-align',
34124
34308
  'scroll-snap-stop',
34125
34309
  'scroll-snap-type',
34310
+ 'scroll-timeline',
34311
+ 'scroll-timeline-axis',
34312
+ 'scroll-timeline-name',
34126
34313
  'scrollbar-color',
34127
34314
  'scrollbar-gutter',
34128
34315
  'scrollbar-width',
@@ -34130,6 +34317,9 @@ function requireLess () {
34130
34317
  'shape-margin',
34131
34318
  'shape-outside',
34132
34319
  'shape-rendering',
34320
+ 'speak',
34321
+ 'speak-as',
34322
+ 'src', // @font-face
34133
34323
  'stop-color',
34134
34324
  'stop-opacity',
34135
34325
  'stroke',
@@ -34140,19 +34330,17 @@ function requireLess () {
34140
34330
  'stroke-miterlimit',
34141
34331
  'stroke-opacity',
34142
34332
  'stroke-width',
34143
- 'speak',
34144
- 'speak-as',
34145
- 'src', // @font-face
34146
34333
  'tab-size',
34147
34334
  'table-layout',
34148
- 'text-anchor',
34149
34335
  'text-align',
34150
34336
  'text-align-all',
34151
34337
  'text-align-last',
34338
+ 'text-anchor',
34152
34339
  'text-combine-upright',
34153
34340
  'text-decoration',
34154
34341
  'text-decoration-color',
34155
34342
  'text-decoration-line',
34343
+ 'text-decoration-skip',
34156
34344
  'text-decoration-skip-ink',
34157
34345
  'text-decoration-style',
34158
34346
  'text-decoration-thickness',
@@ -34166,23 +34354,37 @@ function requireLess () {
34166
34354
  'text-overflow',
34167
34355
  'text-rendering',
34168
34356
  'text-shadow',
34357
+ 'text-size-adjust',
34169
34358
  'text-transform',
34170
34359
  'text-underline-offset',
34171
34360
  'text-underline-position',
34361
+ 'text-wrap',
34362
+ 'text-wrap-mode',
34363
+ 'text-wrap-style',
34364
+ 'timeline-scope',
34172
34365
  'top',
34366
+ 'touch-action',
34173
34367
  'transform',
34174
34368
  'transform-box',
34175
34369
  'transform-origin',
34176
34370
  'transform-style',
34177
34371
  'transition',
34372
+ 'transition-behavior',
34178
34373
  'transition-delay',
34179
34374
  'transition-duration',
34180
34375
  'transition-property',
34181
34376
  'transition-timing-function',
34182
34377
  'translate',
34183
34378
  'unicode-bidi',
34379
+ 'user-modify',
34380
+ 'user-select',
34184
34381
  'vector-effect',
34185
34382
  'vertical-align',
34383
+ 'view-timeline',
34384
+ 'view-timeline-axis',
34385
+ 'view-timeline-inset',
34386
+ 'view-timeline-name',
34387
+ 'view-transition-name',
34186
34388
  'visibility',
34187
34389
  'voice-balance',
34188
34390
  'voice-duration',
@@ -34193,6 +34395,7 @@ function requireLess () {
34193
34395
  'voice-stress',
34194
34396
  'voice-volume',
34195
34397
  'white-space',
34398
+ 'white-space-collapse',
34196
34399
  'widows',
34197
34400
  'width',
34198
34401
  'will-change',
@@ -34202,7 +34405,8 @@ function requireLess () {
34202
34405
  'writing-mode',
34203
34406
  'x',
34204
34407
  'y',
34205
- 'z-index'
34408
+ 'z-index',
34409
+ 'zoom'
34206
34410
  ].sort().reverse();
34207
34411
 
34208
34412
  // some grammars use them all as a single group
@@ -34481,6 +34685,7 @@ function requireLua () {
34481
34685
  ];
34482
34686
  return {
34483
34687
  name: 'Lua',
34688
+ aliases: ['pluto'],
34484
34689
  keywords: {
34485
34690
  $pattern: hljs.UNDERSCORE_IDENT_RE,
34486
34691
  literal: "true false nil",
@@ -34581,7 +34786,10 @@ function requireMakefile () {
34581
34786
  + 'word wordlist firstword lastword dir notdir suffix basename '
34582
34787
  + 'addsuffix addprefix join wildcard realpath abspath error warning '
34583
34788
  + 'shell origin flavor foreach if or and call eval file value' },
34584
- contains: [ VARIABLE ]
34789
+ contains: [
34790
+ VARIABLE,
34791
+ QUOTE_STRING // Added QUOTE_STRING as they can be a part of functions
34792
+ ]
34585
34793
  };
34586
34794
  /* Variable assignment */
34587
34795
  const ASSIGNMENT = { begin: '^' + hljs.UNDERSCORE_IDENT_RE + '\\s*(?=[:+?]?=)' };
@@ -35435,12 +35643,15 @@ function requirePhp () {
35435
35643
  const PASCAL_CASE_CLASS_NAME_RE = regex.concat(
35436
35644
  /(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,
35437
35645
  NOT_PERL_ETC);
35646
+ const UPCASE_NAME_RE = regex.concat(
35647
+ /[A-Z]+/,
35648
+ NOT_PERL_ETC);
35438
35649
  const VARIABLE = {
35439
35650
  scope: 'variable',
35440
35651
  match: '\\$+' + IDENT_RE,
35441
35652
  };
35442
35653
  const PREPROCESSOR = {
35443
- scope: 'meta',
35654
+ scope: "meta",
35444
35655
  variants: [
35445
35656
  { begin: /<\?php/, relevance: 10 }, // boost for obvious PHP
35446
35657
  { begin: /<\?=/ },
@@ -35854,7 +36065,12 @@ function requirePhp () {
35854
36065
  ];
35855
36066
 
35856
36067
  const ATTRIBUTES = {
35857
- begin: regex.concat(/#\[\s*/, PASCAL_CASE_CLASS_NAME_RE),
36068
+ begin: regex.concat(/#\[\s*\\?/,
36069
+ regex.either(
36070
+ PASCAL_CASE_CLASS_NAME_RE,
36071
+ UPCASE_NAME_RE
36072
+ )
36073
+ ),
35858
36074
  beginScope: "meta",
35859
36075
  end: /]/,
35860
36076
  endScope: "meta",
@@ -35884,7 +36100,10 @@ function requirePhp () {
35884
36100
  ...ATTRIBUTE_CONTAINS,
35885
36101
  {
35886
36102
  scope: 'meta',
35887
- match: PASCAL_CASE_CLASS_NAME_RE
36103
+ variants: [
36104
+ { match: PASCAL_CASE_CLASS_NAME_RE },
36105
+ { match: UPCASE_NAME_RE }
36106
+ ]
35888
36107
  }
35889
36108
  ]
35890
36109
  };
@@ -35964,6 +36183,7 @@ function requirePhp () {
35964
36183
  keywords: KEYWORDS,
35965
36184
  contains: [
35966
36185
  'self',
36186
+ ATTRIBUTES,
35967
36187
  VARIABLE,
35968
36188
  LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON,
35969
36189
  hljs.C_BLOCK_COMMENT_MODE,
@@ -37077,10 +37297,19 @@ function requireRust () {
37077
37297
  illegal: null
37078
37298
  }),
37079
37299
  {
37080
- className: 'string',
37300
+ scope: 'string',
37081
37301
  variants: [
37082
37302
  { begin: /b?r(#*)"(.|\n)*?"\1(?!#)/ },
37083
- { begin: /b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/ }
37303
+ {
37304
+ begin: /b?'/,
37305
+ end: /'/,
37306
+ contains: [
37307
+ {
37308
+ scope: "char.escape",
37309
+ match: /\\(\w|x\w{2}|u\w{4}|U\w{8})/
37310
+ }
37311
+ ]
37312
+ }
37084
37313
  ]
37085
37314
  },
37086
37315
  {
@@ -37503,7 +37732,9 @@ function requireScss () {
37503
37732
  'align-self',
37504
37733
  'alignment-baseline',
37505
37734
  'all',
37735
+ 'anchor-name',
37506
37736
  'animation',
37737
+ 'animation-composition',
37507
37738
  'animation-delay',
37508
37739
  'animation-direction',
37509
37740
  'animation-duration',
@@ -37511,8 +37742,14 @@ function requireScss () {
37511
37742
  'animation-iteration-count',
37512
37743
  'animation-name',
37513
37744
  'animation-play-state',
37745
+ 'animation-range',
37746
+ 'animation-range-end',
37747
+ 'animation-range-start',
37748
+ 'animation-timeline',
37514
37749
  'animation-timing-function',
37515
37750
  'appearance',
37751
+ 'aspect-ratio',
37752
+ 'backdrop-filter',
37516
37753
  'backface-visibility',
37517
37754
  'background',
37518
37755
  'background-attachment',
@@ -37522,6 +37759,8 @@ function requireScss () {
37522
37759
  'background-image',
37523
37760
  'background-origin',
37524
37761
  'background-position',
37762
+ 'background-position-x',
37763
+ 'background-position-y',
37525
37764
  'background-repeat',
37526
37765
  'background-size',
37527
37766
  'baseline-shift',
@@ -37547,6 +37786,8 @@ function requireScss () {
37547
37786
  'border-bottom-width',
37548
37787
  'border-collapse',
37549
37788
  'border-color',
37789
+ 'border-end-end-radius',
37790
+ 'border-end-start-radius',
37550
37791
  'border-image',
37551
37792
  'border-image-outset',
37552
37793
  'border-image-repeat',
@@ -37571,8 +37812,6 @@ function requireScss () {
37571
37812
  'border-left-width',
37572
37813
  'border-radius',
37573
37814
  'border-right',
37574
- 'border-end-end-radius',
37575
- 'border-end-start-radius',
37576
37815
  'border-right-color',
37577
37816
  'border-right-style',
37578
37817
  'border-right-width',
@@ -37588,14 +37827,20 @@ function requireScss () {
37588
37827
  'border-top-width',
37589
37828
  'border-width',
37590
37829
  'bottom',
37830
+ 'box-align',
37591
37831
  'box-decoration-break',
37832
+ 'box-direction',
37833
+ 'box-flex',
37834
+ 'box-flex-group',
37835
+ 'box-lines',
37836
+ 'box-ordinal-group',
37837
+ 'box-orient',
37838
+ 'box-pack',
37592
37839
  'box-shadow',
37593
37840
  'box-sizing',
37594
37841
  'break-after',
37595
37842
  'break-before',
37596
37843
  'break-inside',
37597
- 'cx',
37598
- 'cy',
37599
37844
  'caption-side',
37600
37845
  'caret-color',
37601
37846
  'clear',
@@ -37619,19 +37864,31 @@ function requireScss () {
37619
37864
  'column-width',
37620
37865
  'columns',
37621
37866
  'contain',
37867
+ 'contain-intrinsic-block-size',
37868
+ 'contain-intrinsic-height',
37869
+ 'contain-intrinsic-inline-size',
37870
+ 'contain-intrinsic-size',
37871
+ 'contain-intrinsic-width',
37872
+ 'container',
37873
+ 'container-name',
37874
+ 'container-type',
37622
37875
  'content',
37623
37876
  'content-visibility',
37624
37877
  'counter-increment',
37625
37878
  'counter-reset',
37879
+ 'counter-set',
37626
37880
  'cue',
37627
37881
  'cue-after',
37628
37882
  'cue-before',
37629
37883
  'cursor',
37884
+ 'cx',
37885
+ 'cy',
37630
37886
  'direction',
37631
37887
  'display',
37632
37888
  'dominant-baseline',
37633
37889
  'empty-cells',
37634
37890
  'enable-background',
37891
+ 'field-sizing',
37635
37892
  'fill',
37636
37893
  'fill-opacity',
37637
37894
  'fill-rule',
@@ -37644,29 +37901,39 @@ function requireScss () {
37644
37901
  'flex-shrink',
37645
37902
  'flex-wrap',
37646
37903
  'float',
37647
- 'flow',
37648
37904
  'flood-color',
37649
37905
  'flood-opacity',
37906
+ 'flow',
37650
37907
  'font',
37651
37908
  'font-display',
37652
37909
  'font-family',
37653
37910
  'font-feature-settings',
37654
37911
  'font-kerning',
37655
37912
  'font-language-override',
37913
+ 'font-optical-sizing',
37914
+ 'font-palette',
37656
37915
  'font-size',
37657
37916
  'font-size-adjust',
37917
+ 'font-smooth',
37658
37918
  'font-smoothing',
37659
37919
  'font-stretch',
37660
37920
  'font-style',
37661
37921
  'font-synthesis',
37922
+ 'font-synthesis-position',
37923
+ 'font-synthesis-small-caps',
37924
+ 'font-synthesis-style',
37925
+ 'font-synthesis-weight',
37662
37926
  'font-variant',
37927
+ 'font-variant-alternates',
37663
37928
  'font-variant-caps',
37664
37929
  'font-variant-east-asian',
37930
+ 'font-variant-emoji',
37665
37931
  'font-variant-ligatures',
37666
37932
  'font-variant-numeric',
37667
37933
  'font-variant-position',
37668
37934
  'font-variation-settings',
37669
37935
  'font-weight',
37936
+ 'forced-color-adjust',
37670
37937
  'gap',
37671
37938
  'glyph-orientation-horizontal',
37672
37939
  'glyph-orientation-vertical',
@@ -37688,14 +37955,19 @@ function requireScss () {
37688
37955
  'grid-template-rows',
37689
37956
  'hanging-punctuation',
37690
37957
  'height',
37958
+ 'hyphenate-character',
37959
+ 'hyphenate-limit-chars',
37691
37960
  'hyphens',
37692
37961
  'icon',
37693
37962
  'image-orientation',
37694
37963
  'image-rendering',
37695
37964
  'image-resolution',
37696
37965
  'ime-mode',
37966
+ 'initial-letter',
37967
+ 'initial-letter-align',
37697
37968
  'inline-size',
37698
37969
  'inset',
37970
+ 'inset-area',
37699
37971
  'inset-block',
37700
37972
  'inset-block-end',
37701
37973
  'inset-block-start',
@@ -37703,24 +37975,20 @@ function requireScss () {
37703
37975
  'inset-inline-end',
37704
37976
  'inset-inline-start',
37705
37977
  'isolation',
37706
- 'kerning',
37707
37978
  'justify-content',
37708
37979
  'justify-items',
37709
37980
  'justify-self',
37981
+ 'kerning',
37710
37982
  'left',
37711
37983
  'letter-spacing',
37712
37984
  'lighting-color',
37713
37985
  'line-break',
37714
37986
  'line-height',
37987
+ 'line-height-step',
37715
37988
  'list-style',
37716
37989
  'list-style-image',
37717
37990
  'list-style-position',
37718
37991
  'list-style-type',
37719
- 'marker',
37720
- 'marker-end',
37721
- 'marker-mid',
37722
- 'marker-start',
37723
- 'mask',
37724
37992
  'margin',
37725
37993
  'margin-block',
37726
37994
  'margin-block-end',
@@ -37732,6 +38000,11 @@ function requireScss () {
37732
38000
  'margin-left',
37733
38001
  'margin-right',
37734
38002
  'margin-top',
38003
+ 'margin-trim',
38004
+ 'marker',
38005
+ 'marker-end',
38006
+ 'marker-mid',
38007
+ 'marker-start',
37735
38008
  'marks',
37736
38009
  'mask',
37737
38010
  'mask-border',
@@ -37750,6 +38023,10 @@ function requireScss () {
37750
38023
  'mask-repeat',
37751
38024
  'mask-size',
37752
38025
  'mask-type',
38026
+ 'masonry-auto-flow',
38027
+ 'math-depth',
38028
+ 'math-shift',
38029
+ 'math-style',
37753
38030
  'max-block-size',
37754
38031
  'max-height',
37755
38032
  'max-inline-size',
@@ -37768,6 +38045,12 @@ function requireScss () {
37768
38045
  'normal',
37769
38046
  'object-fit',
37770
38047
  'object-position',
38048
+ 'offset',
38049
+ 'offset-anchor',
38050
+ 'offset-distance',
38051
+ 'offset-path',
38052
+ 'offset-position',
38053
+ 'offset-rotate',
37771
38054
  'opacity',
37772
38055
  'order',
37773
38056
  'orphans',
@@ -37777,9 +38060,19 @@ function requireScss () {
37777
38060
  'outline-style',
37778
38061
  'outline-width',
37779
38062
  'overflow',
38063
+ 'overflow-anchor',
38064
+ 'overflow-block',
38065
+ 'overflow-clip-margin',
38066
+ 'overflow-inline',
37780
38067
  'overflow-wrap',
37781
38068
  'overflow-x',
37782
38069
  'overflow-y',
38070
+ 'overlay',
38071
+ 'overscroll-behavior',
38072
+ 'overscroll-behavior-block',
38073
+ 'overscroll-behavior-inline',
38074
+ 'overscroll-behavior-x',
38075
+ 'overscroll-behavior-y',
37783
38076
  'padding',
37784
38077
  'padding-block',
37785
38078
  'padding-block-end',
@@ -37791,16 +38084,24 @@ function requireScss () {
37791
38084
  'padding-left',
37792
38085
  'padding-right',
37793
38086
  'padding-top',
38087
+ 'page',
37794
38088
  'page-break-after',
37795
38089
  'page-break-before',
37796
38090
  'page-break-inside',
38091
+ 'paint-order',
37797
38092
  'pause',
37798
38093
  'pause-after',
37799
38094
  'pause-before',
37800
38095
  'perspective',
37801
38096
  'perspective-origin',
38097
+ 'place-content',
38098
+ 'place-items',
38099
+ 'place-self',
37802
38100
  'pointer-events',
37803
38101
  'position',
38102
+ 'position-anchor',
38103
+ 'position-visibility',
38104
+ 'print-color-adjust',
37804
38105
  'quotes',
37805
38106
  'r',
37806
38107
  'resize',
@@ -37810,7 +38111,10 @@ function requireScss () {
37810
38111
  'right',
37811
38112
  'rotate',
37812
38113
  'row-gap',
38114
+ 'ruby-align',
38115
+ 'ruby-position',
37813
38116
  'scale',
38117
+ 'scroll-behavior',
37814
38118
  'scroll-margin',
37815
38119
  'scroll-margin-block',
37816
38120
  'scroll-margin-block-end',
@@ -37836,6 +38140,9 @@ function requireScss () {
37836
38140
  'scroll-snap-align',
37837
38141
  'scroll-snap-stop',
37838
38142
  'scroll-snap-type',
38143
+ 'scroll-timeline',
38144
+ 'scroll-timeline-axis',
38145
+ 'scroll-timeline-name',
37839
38146
  'scrollbar-color',
37840
38147
  'scrollbar-gutter',
37841
38148
  'scrollbar-width',
@@ -37843,6 +38150,9 @@ function requireScss () {
37843
38150
  'shape-margin',
37844
38151
  'shape-outside',
37845
38152
  'shape-rendering',
38153
+ 'speak',
38154
+ 'speak-as',
38155
+ 'src', // @font-face
37846
38156
  'stop-color',
37847
38157
  'stop-opacity',
37848
38158
  'stroke',
@@ -37853,19 +38163,17 @@ function requireScss () {
37853
38163
  'stroke-miterlimit',
37854
38164
  'stroke-opacity',
37855
38165
  'stroke-width',
37856
- 'speak',
37857
- 'speak-as',
37858
- 'src', // @font-face
37859
38166
  'tab-size',
37860
38167
  'table-layout',
37861
- 'text-anchor',
37862
38168
  'text-align',
37863
38169
  'text-align-all',
37864
38170
  'text-align-last',
38171
+ 'text-anchor',
37865
38172
  'text-combine-upright',
37866
38173
  'text-decoration',
37867
38174
  'text-decoration-color',
37868
38175
  'text-decoration-line',
38176
+ 'text-decoration-skip',
37869
38177
  'text-decoration-skip-ink',
37870
38178
  'text-decoration-style',
37871
38179
  'text-decoration-thickness',
@@ -37879,23 +38187,37 @@ function requireScss () {
37879
38187
  'text-overflow',
37880
38188
  'text-rendering',
37881
38189
  'text-shadow',
38190
+ 'text-size-adjust',
37882
38191
  'text-transform',
37883
38192
  'text-underline-offset',
37884
38193
  'text-underline-position',
38194
+ 'text-wrap',
38195
+ 'text-wrap-mode',
38196
+ 'text-wrap-style',
38197
+ 'timeline-scope',
37885
38198
  'top',
38199
+ 'touch-action',
37886
38200
  'transform',
37887
38201
  'transform-box',
37888
38202
  'transform-origin',
37889
38203
  'transform-style',
37890
38204
  'transition',
38205
+ 'transition-behavior',
37891
38206
  'transition-delay',
37892
38207
  'transition-duration',
37893
38208
  'transition-property',
37894
38209
  'transition-timing-function',
37895
38210
  'translate',
37896
38211
  'unicode-bidi',
38212
+ 'user-modify',
38213
+ 'user-select',
37897
38214
  'vector-effect',
37898
38215
  'vertical-align',
38216
+ 'view-timeline',
38217
+ 'view-timeline-axis',
38218
+ 'view-timeline-inset',
38219
+ 'view-timeline-name',
38220
+ 'view-transition-name',
37899
38221
  'visibility',
37900
38222
  'voice-balance',
37901
38223
  'voice-duration',
@@ -37906,6 +38228,7 @@ function requireScss () {
37906
38228
  'voice-stress',
37907
38229
  'voice-volume',
37908
38230
  'white-space',
38231
+ 'white-space-collapse',
37909
38232
  'widows',
37910
38233
  'width',
37911
38234
  'will-change',
@@ -37915,7 +38238,8 @@ function requireScss () {
37915
38238
  'writing-mode',
37916
38239
  'x',
37917
38240
  'y',
37918
- 'z-index'
38241
+ 'z-index',
38242
+ 'zoom'
37919
38243
  ].sort().reverse();
37920
38244
 
37921
38245
  /*
@@ -38122,19 +38446,19 @@ function requireSql () {
38122
38446
  const regex = hljs.regex;
38123
38447
  const COMMENT_MODE = hljs.COMMENT('--', '$');
38124
38448
  const STRING = {
38125
- className: 'string',
38449
+ scope: 'string',
38126
38450
  variants: [
38127
38451
  {
38128
38452
  begin: /'/,
38129
38453
  end: /'/,
38130
- contains: [ { begin: /''/ } ]
38454
+ contains: [ { match: /''/ } ]
38131
38455
  }
38132
38456
  ]
38133
38457
  };
38134
38458
  const QUOTED_IDENTIFIER = {
38135
38459
  begin: /"/,
38136
38460
  end: /"/,
38137
- contains: [ { begin: /""/ } ]
38461
+ contains: [ { match: /""/ } ]
38138
38462
  };
38139
38463
 
38140
38464
  const LITERALS = [
@@ -38704,22 +39028,42 @@ function requireSql () {
38704
39028
  });
38705
39029
 
38706
39030
  const VARIABLE = {
38707
- className: "variable",
38708
- begin: /@[a-z0-9][a-z0-9_]*/,
39031
+ scope: "variable",
39032
+ match: /@[a-z0-9][a-z0-9_]*/,
38709
39033
  };
38710
39034
 
38711
39035
  const OPERATOR = {
38712
- className: "operator",
38713
- begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
39036
+ scope: "operator",
39037
+ match: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
38714
39038
  relevance: 0,
38715
39039
  };
38716
39040
 
38717
39041
  const FUNCTION_CALL = {
38718
- begin: regex.concat(/\b/, regex.either(...FUNCTIONS), /\s*\(/),
39042
+ match: regex.concat(/\b/, regex.either(...FUNCTIONS), /\s*\(/),
38719
39043
  relevance: 0,
38720
39044
  keywords: { built_in: FUNCTIONS }
38721
39045
  };
38722
39046
 
39047
+ // turns a multi-word keyword combo into a regex that doesn't
39048
+ // care about extra whitespace etc.
39049
+ // input: "START QUERY"
39050
+ // output: /\bSTART\s+QUERY\b/
39051
+ function kws_to_regex(list) {
39052
+ return regex.concat(
39053
+ /\b/,
39054
+ regex.either(...list.map((kw) => {
39055
+ return kw.replace(/\s+/, "\\s+")
39056
+ })),
39057
+ /\b/
39058
+ )
39059
+ }
39060
+
39061
+ const MULTI_WORD_KEYWORDS = {
39062
+ scope: "keyword",
39063
+ match: kws_to_regex(COMBOS),
39064
+ relevance: 0,
39065
+ };
39066
+
38723
39067
  // keywords with less than 3 letters are reduced in relevancy
38724
39068
  function reduceRelevancy(list, {
38725
39069
  exceptions, when
@@ -38752,19 +39096,10 @@ function requireSql () {
38752
39096
  },
38753
39097
  contains: [
38754
39098
  {
38755
- begin: regex.either(...COMBOS),
38756
- relevance: 0,
38757
- keywords: {
38758
- $pattern: /[\w\.]+/,
38759
- keyword: KEYWORDS.concat(COMBOS),
38760
- literal: LITERALS,
38761
- type: TYPES
38762
- },
38763
- },
38764
- {
38765
- className: "type",
38766
- begin: regex.either(...MULTI_WORD_TYPES)
39099
+ scope: "type",
39100
+ match: kws_to_regex(MULTI_WORD_TYPES)
38767
39101
  },
39102
+ MULTI_WORD_KEYWORDS,
38768
39103
  FUNCTION_CALL,
38769
39104
  VARIABLE,
38770
39105
  STRING,
@@ -39642,6 +39977,33 @@ function requireSwift () {
39642
39977
  end: /}/
39643
39978
  };
39644
39979
 
39980
+ const CLASS_FUNC_DECLARATION = {
39981
+ match: [
39982
+ /class\b/,
39983
+ /\s+/,
39984
+ /func\b/,
39985
+ /\s+/,
39986
+ /\b[A-Za-z_][A-Za-z0-9_]*\b/
39987
+ ],
39988
+ scope: {
39989
+ 1: "keyword",
39990
+ 3: "keyword",
39991
+ 5: "title.function"
39992
+ }
39993
+ };
39994
+
39995
+ const CLASS_VAR_DECLARATION = {
39996
+ match: [
39997
+ /class\b/,
39998
+ /\s+/,
39999
+ /var\b/,
40000
+ ],
40001
+ scope: {
40002
+ 1: "keyword",
40003
+ 3: "keyword"
40004
+ }
40005
+ };
40006
+
39645
40007
  const TYPE_DECLARATION = {
39646
40008
  begin: [
39647
40009
  /(struct|protocol|class|extension|enum|actor)/,
@@ -39706,6 +40068,8 @@ function requireSwift () {
39706
40068
  ...COMMENTS,
39707
40069
  FUNCTION_OR_MACRO,
39708
40070
  INIT_SUBSCRIPT,
40071
+ CLASS_FUNC_DECLARATION,
40072
+ CLASS_VAR_DECLARATION,
39709
40073
  TYPE_DECLARATION,
39710
40074
  OPERATOR_DECLARATION,
39711
40075
  PRECEDENCEGROUP,
@@ -39762,15 +40126,15 @@ function requireYaml () {
39762
40126
  const KEY = {
39763
40127
  className: 'attr',
39764
40128
  variants: [
39765
- // added brackets support
39766
- { begin: /\w[\w :()\./-]*:(?=[ \t]|$)/ },
39767
- { // double quoted keys - with brackets
39768
- begin: /"\w[\w :()\./-]*":(?=[ \t]|$)/ },
39769
- { // single quoted keys - with brackets
39770
- begin: /'\w[\w :()\./-]*':(?=[ \t]|$)/ },
40129
+ // added brackets support and special char support
40130
+ { begin: /[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/ },
40131
+ { // double quoted keys - with brackets and special char support
40132
+ begin: /"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/ },
40133
+ { // single quoted keys - with brackets and special char support
40134
+ begin: /'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/ },
39771
40135
  ]
39772
40136
  };
39773
-
40137
+
39774
40138
  const TEMPLATE_VARIABLES = {
39775
40139
  className: 'template-variable',
39776
40140
  variants: [
@@ -39784,14 +40148,25 @@ function requireYaml () {
39784
40148
  }
39785
40149
  ]
39786
40150
  };
40151
+
40152
+ const SINGLE_QUOTE_STRING = {
40153
+ className: 'string',
40154
+ relevance: 0,
40155
+ begin: /'/,
40156
+ end: /'/,
40157
+ contains: [
40158
+ {
40159
+ match: /''/,
40160
+ scope: 'char.escape',
40161
+ relevance: 0
40162
+ }
40163
+ ]
40164
+ };
40165
+
39787
40166
  const STRING = {
39788
40167
  className: 'string',
39789
40168
  relevance: 0,
39790
40169
  variants: [
39791
- {
39792
- begin: /'/,
39793
- end: /'/
39794
- },
39795
40170
  {
39796
40171
  begin: /"/,
39797
40172
  end: /"/
@@ -39809,7 +40184,13 @@ function requireYaml () {
39809
40184
  const CONTAINER_STRING = hljs.inherit(STRING, { variants: [
39810
40185
  {
39811
40186
  begin: /'/,
39812
- end: /'/
40187
+ end: /'/,
40188
+ contains: [
40189
+ {
40190
+ begin: /''/,
40191
+ relevance: 0
40192
+ }
40193
+ ]
39813
40194
  },
39814
40195
  {
39815
40196
  begin: /"/,
@@ -39918,6 +40299,7 @@ function requireYaml () {
39918
40299
  },
39919
40300
  OBJECT,
39920
40301
  ARRAY,
40302
+ SINGLE_QUOTE_STRING,
39921
40303
  STRING
39922
40304
  ];
39923
40305
 
@@ -39986,7 +40368,9 @@ function requireTypescript () {
39986
40368
  "import",
39987
40369
  "from",
39988
40370
  "export",
39989
- "extends"
40371
+ "extends",
40372
+ // It's reached stage 3, which is "recommended for implementation":
40373
+ "using"
39990
40374
  ];
39991
40375
  const LITERALS = [
39992
40376
  "true",
@@ -40368,7 +40752,7 @@ function requireTypescript () {
40368
40752
  const PARAMS = {
40369
40753
  className: 'params',
40370
40754
  // convert this to negative lookbehind in v12
40371
- begin: /(\s*)\(/, // to match the parms with
40755
+ begin: /(\s*)\(/, // to match the parms with
40372
40756
  end: /\)/,
40373
40757
  excludeBegin: true,
40374
40758
  excludeEnd: true,
@@ -40579,8 +40963,8 @@ function requireTypescript () {
40579
40963
  NUMBER,
40580
40964
  CLASS_REFERENCE,
40581
40965
  {
40582
- className: 'attr',
40583
- begin: IDENT_RE$1 + regex.lookahead(':'),
40966
+ scope: 'attr',
40967
+ match: IDENT_RE$1 + regex.lookahead(':'),
40584
40968
  relevance: 0
40585
40969
  },
40586
40970
  FUNCTION_VARIABLE,
@@ -40722,6 +41106,7 @@ function requireTypescript () {
40722
41106
 
40723
41107
  /** @type LanguageFn */
40724
41108
  function typescript(hljs) {
41109
+ const regex = hljs.regex;
40725
41110
  const tsLanguage = javascript(hljs);
40726
41111
 
40727
41112
  const IDENT_RE$1 = IDENT_RE;
@@ -40778,13 +41163,11 @@ function requireTypescript () {
40778
41163
  "override",
40779
41164
  "satisfies"
40780
41165
  ];
40781
-
40782
41166
  /*
40783
41167
  namespace is a TS keyword but it's fine to use it as a variable name too.
40784
41168
  const message = 'foo';
40785
41169
  const namespace = 'bar';
40786
41170
  */
40787
-
40788
41171
  const KEYWORDS$1 = {
40789
41172
  $pattern: IDENT_RE,
40790
41173
  keyword: KEYWORDS.concat(TS_SPECIFIC_KEYWORDS),
@@ -40792,6 +41175,7 @@ function requireTypescript () {
40792
41175
  built_in: BUILT_INS.concat(TYPES),
40793
41176
  "variable.language": BUILT_IN_VARIABLES
40794
41177
  };
41178
+
40795
41179
  const DECORATOR = {
40796
41180
  className: 'meta',
40797
41181
  begin: '@' + IDENT_RE$1,
@@ -40812,15 +41196,25 @@ function requireTypescript () {
40812
41196
  tsLanguage.exports.PARAMS_CONTAINS.push(DECORATOR);
40813
41197
 
40814
41198
  // highlight the function params
40815
- const ATTRIBUTE_HIGHLIGHT = tsLanguage.contains.find(c => c.className === "attr");
41199
+ const ATTRIBUTE_HIGHLIGHT = tsLanguage.contains.find(c => c.scope === "attr");
41200
+
41201
+ // take default attr rule and extend it to support optionals
41202
+ const OPTIONAL_KEY_OR_ARGUMENT = Object.assign({},
41203
+ ATTRIBUTE_HIGHLIGHT,
41204
+ { match: regex.concat(IDENT_RE$1, regex.lookahead(/\s*\?:/)) }
41205
+ );
40816
41206
  tsLanguage.exports.PARAMS_CONTAINS.push([
40817
41207
  tsLanguage.exports.CLASS_REFERENCE, // class reference for highlighting the params types
40818
41208
  ATTRIBUTE_HIGHLIGHT, // highlight the params key
41209
+ OPTIONAL_KEY_OR_ARGUMENT, // Added for optional property assignment highlighting
40819
41210
  ]);
41211
+
41212
+ // Add the optional property assignment highlighting for objects or classes
40820
41213
  tsLanguage.contains = tsLanguage.contains.concat([
40821
41214
  DECORATOR,
40822
41215
  NAMESPACE,
40823
41216
  INTERFACE,
41217
+ OPTIONAL_KEY_OR_ARGUMENT, // Added for optional property assignment highlighting
40824
41218
  ]);
40825
41219
 
40826
41220
  // TS gets a simpler shebang rule than JS