From e390c842b09eb9d436cdfc18ad692733dbeb5450 Mon Sep 17 00:00:00 2001 From: Koen Lageveen Date: Sun, 17 Mar 2024 18:38:28 +0100 Subject: [PATCH 1/3] remove donation note --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index dcb57b56..6c335896 100644 --- a/README.md +++ b/README.md @@ -30,12 +30,6 @@ Steps: 2. Look for _CSS_ folder 3. Remove it or at least delete any _CSS.sublime-syntax_ in it -## Buy me a coffee - -☕️👌🏻 - -If you enjoy this package, feel free to make a little [donation via PayPal](https://paypal.me/koenlageveen) towards the coffee that keeps this project running. It's much appreciated! - ## Notes Development on the Sass syntax is currently frozen. It's too high maintenance since it's so different from CSS. Furthermore, the Sass language doesn't support various features that SCSS does: it's not left behind by the Sass team per se, but SCSS is the primary language right now. From e0ce1aaebd94e8556901df0e35046e8aae810ccd Mon Sep 17 00:00:00 2001 From: deathaxe Date: Tue, 7 May 2024 21:15:34 +0200 Subject: [PATCH 2/3] Remove completion restrictions (#108) Resolves #107 Suggest properties also within `meta.selector` as this is the most likely scope in front of a nested selector, if a property is not yet terminated by semi-colon. --- Syntaxes/SCSS.sublime-settings | 2 +- Syntaxes/Sass.sublime-settings | 2 +- plugins/completions/provider.py | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Syntaxes/SCSS.sublime-settings b/Syntaxes/SCSS.sublime-settings index 6a1e9a3c..f98a4ada 100644 --- a/Syntaxes/SCSS.sublime-settings +++ b/Syntaxes/SCSS.sublime-settings @@ -4,7 +4,7 @@ // Controls what scopes default completions will be provided in. // Can be a list of strings which are joined before matching. - "default_completions_selector": "source.scss - meta.selector", + "default_completions_selector": "source.scss", // Default separators except `-` "word_separators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?", diff --git a/Syntaxes/Sass.sublime-settings b/Syntaxes/Sass.sublime-settings index eff39a58..c0620c01 100644 --- a/Syntaxes/Sass.sublime-settings +++ b/Syntaxes/Sass.sublime-settings @@ -4,7 +4,7 @@ // Controls what scopes default completions will be provided in. // Can be a list of strings which are joined before matching. - "default_completions_selector": "source.sass - meta.selector", + "default_completions_selector": "source.sass", // Default separators except `-` "word_separators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?", diff --git a/plugins/completions/provider.py b/plugins/completions/provider.py index 1d16c34c..a2914973 100755 --- a/plugins/completions/provider.py +++ b/plugins/completions/provider.py @@ -234,10 +234,8 @@ def on_query_completions(self, view, prefix, locations): items = self.complete_function_argument(view, prefix, pt) elif view.match_selector(pt - 1, "meta.property-value, punctuation.separator.key-value"): items = self.complete_property_value(view, prefix, pt, True) - elif view.match_selector(pt - 1, "meta.property-name, meta.property-list - meta.selector"): - items = self.complete_property_name(view, prefix, pt, True) else: - items = None + items = self.complete_property_name(view, prefix, pt, True) if items: return sublime.CompletionList(items) From dff7d04bfb09d840e93a71f1112bb479163212b6 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Tue, 7 May 2024 21:16:32 +0200 Subject: [PATCH 3/3] Update troubleshooting (#109) Add hint to check CSS package being enabled. caused by https://forum.sublimetext.com/t/no-scss-syntax-highlighting-solved/72174 --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6c335896..00af258d 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,18 @@ The easiest way to install is using [Package Control](https://packagecontrol.io) SCSS extends Sublime Text's CSS syntax definition as of ST4149. -If SCSS syntax highlighting doesn't work and console displays syntax errors, please make sure to remove any out-dated syntax override. +If SCSS syntax highlighting doesn't work and console displays syntax errors, -Steps: +1. check if CSS package enabled. +2. remove any out-dated syntax override. + +### Enable CSS package + +1. Open `Command Palette` using ctrl+shift+P or menu item `Tools → Command Palette...` +2. Choose `Package Control: Enable Packages` +3. Find `CSS` and hit Enter + +### Remove overrides 1. call _Menu > Preferences > Browse Packages.._ 2. Look for _CSS_ folder