From c4a661488b46336c5787f668fd33aea3f8e6c60b Mon Sep 17 00:00:00 2001 From: deathaxe Date: Sat, 24 Feb 2024 16:13:21 +0100 Subject: [PATCH 1/2] Update completions see: https://github.com/sublimehq/Packages/pull/3881 --- plugins/completions/common.py | 29 +++++++++++++++++++++++----- plugins/completions/function_args.py | 3 +++ plugins/completions/properties.py | 18 ++++++++++++++++- 3 files changed, 44 insertions(+), 6 deletions(-) diff --git a/plugins/completions/common.py b/plugins/completions/common.py index 53af21d..b98901f 100644 --- a/plugins/completions/common.py +++ b/plugins/completions/common.py @@ -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", @@ -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)"]], @@ -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", @@ -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 = {} diff --git a/plugins/completions/function_args.py b/plugins/completions/function_args.py index cebc504..ca8d3be 100644 --- a/plugins/completions/function_args.py +++ b/plugins/completions/function_args.py @@ -41,6 +41,7 @@ def get_func_args(): "lab": ["", "none"], "lch": ["", "none"], "leader": [""], + "light-dark": [""], "linear-gradient": ["", "", "to"], "log": [""], "matrix": [""], @@ -49,6 +50,8 @@ def get_func_args(): "min": [["attr()", "attr($1)"], ""], "minmax": ["min-content", "max-content", "auto"], "mod": [""], + "oklab": ["", "none"], + "oklch": ["", "none"], "opacity": [""], "path": [""], "paint": [], diff --git a/plugins/completions/properties.py b/plugins/completions/properties.py index 73ca6c2..acd8aec 100644 --- a/plugins/completions/properties.py +++ b/plugins/completions/properties.py @@ -273,6 +273,9 @@ def get_properties(): "auto", ], "columns": ["", "auto"], + "container": [""], + "container-name": ["none"], + "container-type": [""], "contain": ["content", "layout", "none", "paint", "inline-size", "size", "strict", "style"], "contain-intrinsic-size": ["none", "auto"], "contain-intrinsic-block-size": ["none", "auto"], @@ -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-caps": [ @@ -497,6 +503,7 @@ def get_properties(): "simplified", "traditional", ], + "font-variant-emoji": ["normal", "text", "emoji", "unicode"], "font-variant-ligatures": [ "normal", "none", @@ -623,6 +630,7 @@ def get_properties(): "height": ["", "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"], @@ -809,7 +817,7 @@ def get_properties(): "offset-inline-end": ["", "auto"], "offset-inline-start": ["", "auto"], "offset-path": ["", "none"], - "offset-position": ["", "auto"], + "offset-position": ["", "auto", "normal"], "offset-rotate": ["", "auto", "reverse"], "opacity": [ "", @@ -869,9 +877,11 @@ def get_properties(): "padding-left": ["", "auto"], "padding-right": ["", "auto"], "padding-top": ["", "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": ["", ""], @@ -1088,6 +1098,7 @@ def get_properties(): ], "text-underline-offset": ["", "auto"], "text-underline-position": ["auto", "under", "left", "right"], + "text-wrap": [""], "top": ["", "auto"], "touch-action": [ "auto", @@ -1189,7 +1200,12 @@ def get_properties(): "nowrap", "pre-wrap", "pre-line", + "", + "", + "", ], + "white-space-collapse": [""], + "white-space-trim": [""], "widows": [ "", ], From 5ea8901b65450e8c7badb0cbf2f5856901f9ec14 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Sat, 24 Feb 2024 16:14:56 +0100 Subject: [PATCH 2/2] README: Update Github Alerts --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a10f962..37d9e0f 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,13 @@ 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.