Syntax-highlighting-for-Sass icon indicating copy to clipboard operation
Syntax-highlighting-for-Sass copied to clipboard

Pseudos and some others not colored correctly

Open ronilaukkarinen opened this issue 7 years ago • 11 comments

Hi! I just noticed this with the newest updates but not sure if this package causes it. Pseudos and links for example (after :) are not correctly colored. When I install "SCSS" package, I get two SCSS in set syntax menu where other one works, but is not default.

Here's some screenshots:

Screenshot Screenshot 2 Screenshot 3

Any tips?

Using Sublime Text Dev 3154 and latest Syntax-hilighting-for Sass-package.

ronilaukkarinen avatar Nov 28 '17 11:11 ronilaukkarinen

The pseudo elements and pseudo classes are actually highlighted, but they are not assigned to any colour or assigned to white by the default Monokai colour scheme. The reason I did this is that I want to highlight the pseudos in the same way as the default CSS package and also in a different colour.

The Monokai Extended support highlighting pseudos.

CC @MartinFugess

P233 avatar Nov 28 '17 12:11 P233

Thanks for clarifying that it's more like a Color Scheme issue.

I got the correct syntax by copying Monokai Extended theme and changing the colors I had in my Spacegray-itg-monokai hybrid. So now it works correctly. For other interested parties, my theme can be found here.

Thanks again.

ronilaukkarinen avatar Nov 28 '17 13:11 ronilaukkarinen

Ok, it didn't solve the problem... I'm not sure how to add pseudos...

ronilaukkarinen avatar Dec 01 '17 12:12 ronilaukkarinen

solution is to use the old version. I also solved it this way.

MartinFugess avatar Dec 01 '17 13:12 MartinFugess

https://github.com/jonschlinkert/sublime-monokai-extended/blob/master/Monokai%20Extended%20Origin.tmTheme#L556-L568

This code snippet might help. In the snippet, the scope to match pseudos is entity.other.attribute-name.pseudo-class.css, but both the default CSS package and this package use scope entity.other.pseudo-class.css. So don't forget to use entity.other.pseudo-class.css

P233 avatar Dec 01 '17 13:12 P233

@P233 That didn't help unfortunately... @MartinFugess's solution to revert back older version is the best solution for now. Thanks!

ronilaukkarinen avatar Dec 01 '17 15:12 ronilaukkarinen

While searching and waiting for better solution, I have created a legacy fork of the old version here to use with Add repository option and to prevent overriding/bugs with manual transfer.

ronilaukkarinen avatar Dec 05 '17 08:12 ronilaukkarinen

I'm having the exact same problem, except it didn't appear to me until the update to 1.2.3

davejtoews avatar Jan 31 '18 18:01 davejtoews

Switching to Monokai Extended fixed the pseudo selectors, but not variables, which are white as of update to 1.2.3.

Using ST3 build 3143

davejtoews avatar Jan 31 '18 18:01 davejtoews

@davejtoews the same problem. i just want to have highlighting for variables & pseudo selectors ;(

hettcher avatar Jan 31 '18 22:01 hettcher

thanks)

hettcher avatar Feb 07 '18 23:02 hettcher