SublimeText / Sass

Sass and SCSS syntax for Sublime Text
https://packagecontrol.io/packages/Sass
MIT License
50 stars 8 forks source link

Missing syntax highlighting #93

Closed spartie17 closed 5 months ago

spartie17 commented 2 years ago

Hi there, I'm experiencing some weird syntax highlighting that seems to have appeared quite recently. The minus sign (-) is now highlighted, and px and the % sign used to be pink. I'm using version 2.5.4

What it currently looks like:

Screenshot 2022-03-22 at 11 56 03AM@2x

What it used to look like:

Screenshot 2022-03-22 at 12 15 05PM@2x
braver commented 2 years ago

2.5.x hasn’t been updated in ages. Can you try to upgrade to the 3.0 version (see the readme on how to do so)?

spartie17 commented 2 years ago

It was the first thing I tried to do, but not having much luck with that either. I've added the prerelease code to the package control settings and then tried to upgrade packages, but it still says 2.5.4 is up-to-date. I'm running sublime build 4126 - is it because I'm using sublime 4?

Screenshot 2022-03-22 at 05 14 47PM@2x
braver commented 2 years ago

No that should work in theory, although maybe a recent change in the release strategy might conflict here… Sass 3.0 is available for the most recent beta/dev builds of ST4 just to gently stagger the release. You could try out the latest dev build just to see what it does (although they’re usually stable enough to be a daily driver).

Is this a recent problem you’re having? It has really been a very long time since I worked on pre-3.0 if this package.

spartie17 commented 2 years ago

Yep! Super recent, it only arose in the past week or so.

Installing the latest dev build seemed to force the package to update to v3, hooray! This has removed the highlight on the minus sign, but it's still a different colour to what it used to be along with px and %, and with v3 the mixin parameter has changed colour also. Not a huge deal - it all still works as it should and the main issue was the minus highlight. I've just grown so used to the previous colours that it would be awesome to have them back (:

Currently:

Screenshot 2022-03-22 at 07 02 47PM@2x

Previously:

Screenshot 2022-03-22 at 07 01 55PM@2x
braver commented 2 years ago

Yes some changes, especially around units, are to be expected. This now aligns with the default CSS package (just try to write something similar in plain CSS, it should match).

I do wonder if I did something to create problems in 2.5.4 🤔 maybe once 3.0 trickles through to more users and I get the feedback that it’s ok, I could push it out to all ST4 users (or that happens organically when a new stable release happens)… I’ll keep an eye on it.

akruit commented 2 years ago

Bij seeing this, I have no highlighting at all when I using sass. I tried the latest dev build of Sublime today, but it is not working. I work on a Mac

Dev Channel, Build 4129

Sass Sass and SCSS syntax for Sublime Text v3.0.0; packagecontrol.io/packages/Sass

UPDATE: latest dev update solved the problem!

braver commented 5 months ago

closed via #96