Skip to content

Commit

Permalink
Merge branch 'st4107'
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Feb 24, 2024
2 parents c65ee9f + 5ea8901 commit 47748c6
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ The easiest way to install is using [Package Control](https://packagecontrol.io)
2. Rename it to _Less.sublime-package_
3. Copy it into _Installed Packages_ directory

> **Note**
> [!NOTE]
>
> To find _Installed Packages_...
>
> 1. call _Menu > Preferences > Browse Packages.._
> 2. Navigate to parent folder
> **Warning**
> [!WARNING]
>
> Manually installed packages are not automatically updated by Package Control.
Expand Down
29 changes: 24 additions & 5 deletions plugins/completions/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,16 @@ def get_common_values():
"color": [
"currentColor",
"transparent",
["rgb()", "rgb(${1:0}, ${2:0}, ${3:0}${4:, ${5:1.0}})"],
["rgb()", "rgb(${1:0}, ${2:0}, ${3:0}${4: / ${5:1.0}})"],
["rgba()", "rgba(${1:0}, ${2:0}, ${3:0}, ${4:1.0})"],
["hsl()", "hsl(${1:0}, ${2:100%}, ${3:50%}${4:, ${5:1.0}})"],
["hsl()", "hsl(${1:0}, ${2:100%}, ${3:50%}${4: / ${5:1.0}})"],
["hsla()", "hsla(${1:0}, ${2:100%}, ${3:50%}, ${4:1.0})"],
["hwb()", "hwb(${1:0}, ${2:100%}, ${3:50%}${4:, ${5:1.0}})"],
["lab()", "lab(${1:0%}, ${2:0}, ${3:0}${4:, ${5:1.0}})"],
["lch()", "lch(${1:0%}, ${2:0.0}, ${3:0.0}${4:, ${5:1.0}})"],
["hwb()", "hwb(${1:0}, ${2:100%}, ${3:50%}${4: / ${5:1.0}})"],
["lab()", "lab(${1:0%}, ${2:0}, ${3:0}${4: / ${5:1.0}})"],
["lch()", "lch(${1:0%}, ${2:0.0}, ${3:0.0}${4: / ${5:1.0}})"],
["light-dark()", "light-dark(${1}, ${2})"],
["oklab()", "oklab(${1:0%}, ${2:0}, ${3:0}${4: / ${5:1.0}})"],
["oklch()", "oklch(${1:0%}, ${2:0.0}, ${3:0.0}${4: / ${5:1.0}})"],
# Named colors
"aliceblue",
"antiquewhite",
Expand Down Expand Up @@ -257,6 +260,7 @@ def get_common_values():
"yellow",
"yellowgreen",
],
"container-type": ["normal", "size", "inline-size"],
"content-distribution": ["space-between", "space-around", "space-evenly", "stretch"],
"content-position": ["center", "start", "end", "flex-start", "flex-end"],
"counter-style": [["symbols()", "symbols($1)"]],
Expand Down Expand Up @@ -440,6 +444,7 @@ def get_common_values():
],
"shape-radius": ["closest-side", "farthest-side"],
"side-or-corner": ["left", "right", "top", "bottom"],
"text-wrap": ["wrap", "nowrap", "balance", "stable", "pretty"],
"timing-function": [
"linear",
"ease",
Expand Down Expand Up @@ -493,6 +498,20 @@ def get_common_values():
"%",
],
"url": [["url()", "url($1)"]],
"white-space-collapse": [
"collapse",
"discard",
"preserve",
"preserve-breaks",
"preserve-spaces",
"break-spaces"
],
"white-space-trim": [
"none",
"discard-before",
"discard-after",
"discard-inner"
],
}

resolved_values = {}
Expand Down
3 changes: 3 additions & 0 deletions plugins/completions/function_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def get_func_args():
"lab": ["<calc>", "none"],
"lch": ["<calc>", "none"],
"leader": ["<leader-type>"],
"light-dark": ["<color>"],
"linear-gradient": ["<side-or-corner>", "<color>", "to"],
"log": ["<calc>"],
"matrix": ["<calc>"],
Expand All @@ -49,6 +50,8 @@ def get_func_args():
"min": [["attr()", "attr($1)"], "<calc>"],
"minmax": ["min-content", "max-content", "auto"],
"mod": ["<calc>"],
"oklab": ["<calc>", "none"],
"oklch": ["<calc>", "none"],
"opacity": ["<calc>"],
"path": ["<fill-rule>"],
"paint": [],
Expand Down
18 changes: 17 additions & 1 deletion plugins/completions/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ def get_properties():
"auto",
],
"columns": ["<calc>", "auto"],
"container": ["<container-type>"],
"container-name": ["none"],
"container-type": ["<container-type>"],
"contain": ["content", "layout", "none", "paint", "inline-size", "size", "strict", "style"],
"contain-intrinsic-size": ["none", "auto"],
"contain-intrinsic-block-size": ["none", "auto"],
Expand Down Expand Up @@ -476,6 +479,9 @@ def get_properties():
],
"font-style": ["normal", "italic", "oblique"],
"font-synthesis": ["none", "weight", "style", "small-caps"],
"font-synthesis-small-caps": ["auto", "none"],
"font-synthesis-style": ["auto", "none"],
"font-synthesis-weight": ["auto", "none"],
"font-variant": ["normal", "small-caps"],
"font-variant-alternates": ["<font-variant-alternates>"],
"font-variant-caps": [
Expand All @@ -497,6 +503,7 @@ def get_properties():
"simplified",
"traditional",
],
"font-variant-emoji": ["normal", "text", "emoji", "unicode"],
"font-variant-ligatures": [
"normal",
"none",
Expand Down Expand Up @@ -623,6 +630,7 @@ def get_properties():
"height": ["<calc>", "auto", "fit-content"],
"hyphens": ["none", "manual", "auto"],
"hyphenate-character": ["auto"],
"hyphenate-limit-chars": ["auto"],
"image-orientation": ["flip", "from-image"],
"image-rendering": ["auto", "optimizeSpeed", "optimizeQuality", "pixelated"],
"image-resolution": ["from-image"],
Expand Down Expand Up @@ -809,7 +817,7 @@ def get_properties():
"offset-inline-end": ["<calc>", "auto"],
"offset-inline-start": ["<calc>", "auto"],
"offset-path": ["<calc>", "none"],
"offset-position": ["<calc>", "auto"],
"offset-position": ["<calc>", "auto", "normal"],
"offset-rotate": ["<calc>", "auto", "reverse"],
"opacity": [
"<calc>",
Expand Down Expand Up @@ -869,9 +877,11 @@ def get_properties():
"padding-left": ["<calc>", "auto"],
"padding-right": ["<calc>", "auto"],
"padding-top": ["<calc>", "auto"],
"page": ["auto"],
"page-break-after": ["auto", "always", "avoid", "left", "right"],
"page-break-before": ["auto", "always", "avoid", "left", "right"],
"page-break-inside": ["avoid", "auto"],
"page-orientation": ["upright", "rotate-left", "rotate-right"],
"paint-order": ["normal", "fill", "stroke", "markers"],
"perspective": ["none"],
"perspective-origin": ["<calc>", "<position>"],
Expand Down Expand Up @@ -1088,6 +1098,7 @@ def get_properties():
],
"text-underline-offset": ["<calc>", "auto"],
"text-underline-position": ["auto", "under", "left", "right"],
"text-wrap": ["<text-wrap>"],
"top": ["<calc>", "auto"],
"touch-action": [
"auto",
Expand Down Expand Up @@ -1189,7 +1200,12 @@ def get_properties():
"nowrap",
"pre-wrap",
"pre-line",
"<text-wrap>",
"<white-space-collapse>",
"<white-space-trim>",
],
"white-space-collapse": ["<white-space-collapse>"],
"white-space-trim": ["<white-space-trim>"],
"widows": [
"<calc>",
],
Expand Down

0 comments on commit 47748c6

Please sign in to comment.