Skip to content

Commit 47748c6

Browse files
author
deathaxe
committed
Merge branch 'st4107'
2 parents c65ee9f + 5ea8901 commit 47748c6

File tree

4 files changed

+46
-8
lines changed

4 files changed

+46
-8
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ The easiest way to install is using [Package Control](https://packagecontrol.io)
2727
2. Rename it to _Less.sublime-package_
2828
3. Copy it into _Installed Packages_ directory
2929

30-
> **Note**
30+
> [!NOTE]
3131
>
3232
> To find _Installed Packages_...
3333
>
3434
> 1. call _Menu > Preferences > Browse Packages.._
3535
> 2. Navigate to parent folder
3636
37-
> **Warning**
37+
> [!WARNING]
3838
>
3939
> Manually installed packages are not automatically updated by Package Control.
4040

plugins/completions/common.py

+24-5
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,16 @@ def get_common_values():
100100
"color": [
101101
"currentColor",
102102
"transparent",
103-
["rgb()", "rgb(${1:0}, ${2:0}, ${3:0}${4:, ${5:1.0}})"],
103+
["rgb()", "rgb(${1:0}, ${2:0}, ${3:0}${4: / ${5:1.0}})"],
104104
["rgba()", "rgba(${1:0}, ${2:0}, ${3:0}, ${4:1.0})"],
105-
["hsl()", "hsl(${1:0}, ${2:100%}, ${3:50%}${4:, ${5:1.0}})"],
105+
["hsl()", "hsl(${1:0}, ${2:100%}, ${3:50%}${4: / ${5:1.0}})"],
106106
["hsla()", "hsla(${1:0}, ${2:100%}, ${3:50%}, ${4:1.0})"],
107-
["hwb()", "hwb(${1:0}, ${2:100%}, ${3:50%}${4:, ${5:1.0}})"],
108-
["lab()", "lab(${1:0%}, ${2:0}, ${3:0}${4:, ${5:1.0}})"],
109-
["lch()", "lch(${1:0%}, ${2:0.0}, ${3:0.0}${4:, ${5:1.0}})"],
107+
["hwb()", "hwb(${1:0}, ${2:100%}, ${3:50%}${4: / ${5:1.0}})"],
108+
["lab()", "lab(${1:0%}, ${2:0}, ${3:0}${4: / ${5:1.0}})"],
109+
["lch()", "lch(${1:0%}, ${2:0.0}, ${3:0.0}${4: / ${5:1.0}})"],
110+
["light-dark()", "light-dark(${1}, ${2})"],
111+
["oklab()", "oklab(${1:0%}, ${2:0}, ${3:0}${4: / ${5:1.0}})"],
112+
["oklch()", "oklch(${1:0%}, ${2:0.0}, ${3:0.0}${4: / ${5:1.0}})"],
110113
# Named colors
111114
"aliceblue",
112115
"antiquewhite",
@@ -257,6 +260,7 @@ def get_common_values():
257260
"yellow",
258261
"yellowgreen",
259262
],
263+
"container-type": ["normal", "size", "inline-size"],
260264
"content-distribution": ["space-between", "space-around", "space-evenly", "stretch"],
261265
"content-position": ["center", "start", "end", "flex-start", "flex-end"],
262266
"counter-style": [["symbols()", "symbols($1)"]],
@@ -440,6 +444,7 @@ def get_common_values():
440444
],
441445
"shape-radius": ["closest-side", "farthest-side"],
442446
"side-or-corner": ["left", "right", "top", "bottom"],
447+
"text-wrap": ["wrap", "nowrap", "balance", "stable", "pretty"],
443448
"timing-function": [
444449
"linear",
445450
"ease",
@@ -493,6 +498,20 @@ def get_common_values():
493498
"%",
494499
],
495500
"url": [["url()", "url($1)"]],
501+
"white-space-collapse": [
502+
"collapse",
503+
"discard",
504+
"preserve",
505+
"preserve-breaks",
506+
"preserve-spaces",
507+
"break-spaces"
508+
],
509+
"white-space-trim": [
510+
"none",
511+
"discard-before",
512+
"discard-after",
513+
"discard-inner"
514+
],
496515
}
497516

498517
resolved_values = {}

plugins/completions/function_args.py

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def get_func_args():
4141
"lab": ["<calc>", "none"],
4242
"lch": ["<calc>", "none"],
4343
"leader": ["<leader-type>"],
44+
"light-dark": ["<color>"],
4445
"linear-gradient": ["<side-or-corner>", "<color>", "to"],
4546
"log": ["<calc>"],
4647
"matrix": ["<calc>"],
@@ -49,6 +50,8 @@ def get_func_args():
4950
"min": [["attr()", "attr($1)"], "<calc>"],
5051
"minmax": ["min-content", "max-content", "auto"],
5152
"mod": ["<calc>"],
53+
"oklab": ["<calc>", "none"],
54+
"oklch": ["<calc>", "none"],
5255
"opacity": ["<calc>"],
5356
"path": ["<fill-rule>"],
5457
"paint": [],

plugins/completions/properties.py

+17-1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ def get_properties():
273273
"auto",
274274
],
275275
"columns": ["<calc>", "auto"],
276+
"container": ["<container-type>"],
277+
"container-name": ["none"],
278+
"container-type": ["<container-type>"],
276279
"contain": ["content", "layout", "none", "paint", "inline-size", "size", "strict", "style"],
277280
"contain-intrinsic-size": ["none", "auto"],
278281
"contain-intrinsic-block-size": ["none", "auto"],
@@ -476,6 +479,9 @@ def get_properties():
476479
],
477480
"font-style": ["normal", "italic", "oblique"],
478481
"font-synthesis": ["none", "weight", "style", "small-caps"],
482+
"font-synthesis-small-caps": ["auto", "none"],
483+
"font-synthesis-style": ["auto", "none"],
484+
"font-synthesis-weight": ["auto", "none"],
479485
"font-variant": ["normal", "small-caps"],
480486
"font-variant-alternates": ["<font-variant-alternates>"],
481487
"font-variant-caps": [
@@ -497,6 +503,7 @@ def get_properties():
497503
"simplified",
498504
"traditional",
499505
],
506+
"font-variant-emoji": ["normal", "text", "emoji", "unicode"],
500507
"font-variant-ligatures": [
501508
"normal",
502509
"none",
@@ -623,6 +630,7 @@ def get_properties():
623630
"height": ["<calc>", "auto", "fit-content"],
624631
"hyphens": ["none", "manual", "auto"],
625632
"hyphenate-character": ["auto"],
633+
"hyphenate-limit-chars": ["auto"],
626634
"image-orientation": ["flip", "from-image"],
627635
"image-rendering": ["auto", "optimizeSpeed", "optimizeQuality", "pixelated"],
628636
"image-resolution": ["from-image"],
@@ -809,7 +817,7 @@ def get_properties():
809817
"offset-inline-end": ["<calc>", "auto"],
810818
"offset-inline-start": ["<calc>", "auto"],
811819
"offset-path": ["<calc>", "none"],
812-
"offset-position": ["<calc>", "auto"],
820+
"offset-position": ["<calc>", "auto", "normal"],
813821
"offset-rotate": ["<calc>", "auto", "reverse"],
814822
"opacity": [
815823
"<calc>",
@@ -869,9 +877,11 @@ def get_properties():
869877
"padding-left": ["<calc>", "auto"],
870878
"padding-right": ["<calc>", "auto"],
871879
"padding-top": ["<calc>", "auto"],
880+
"page": ["auto"],
872881
"page-break-after": ["auto", "always", "avoid", "left", "right"],
873882
"page-break-before": ["auto", "always", "avoid", "left", "right"],
874883
"page-break-inside": ["avoid", "auto"],
884+
"page-orientation": ["upright", "rotate-left", "rotate-right"],
875885
"paint-order": ["normal", "fill", "stroke", "markers"],
876886
"perspective": ["none"],
877887
"perspective-origin": ["<calc>", "<position>"],
@@ -1088,6 +1098,7 @@ def get_properties():
10881098
],
10891099
"text-underline-offset": ["<calc>", "auto"],
10901100
"text-underline-position": ["auto", "under", "left", "right"],
1101+
"text-wrap": ["<text-wrap>"],
10911102
"top": ["<calc>", "auto"],
10921103
"touch-action": [
10931104
"auto",
@@ -1189,7 +1200,12 @@ def get_properties():
11891200
"nowrap",
11901201
"pre-wrap",
11911202
"pre-line",
1203+
"<text-wrap>",
1204+
"<white-space-collapse>",
1205+
"<white-space-trim>",
11921206
],
1207+
"white-space-collapse": ["<white-space-collapse>"],
1208+
"white-space-trim": ["<white-space-trim>"],
11931209
"widows": [
11941210
"<calc>",
11951211
],

0 commit comments

Comments
 (0)