SublimeText / Sass

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

No syntax highlighting for `@use` #69

Closed CrazyTim closed 6 months ago

CrazyTim commented 3 years ago

I suggest making it simular as @import.

braver commented 3 years ago

I'm actually really sure we have highlighting for @use and @forward. Any specific code where you have a problem? With screenshots perhaps?

CrazyTim commented 3 years ago

@braver sure, here is sample code and screen shot. I found a few more syntax issues and have included them here.

@include '../vars';
@use '../vars'; // expect "@use" to be pink, and "'../vars'" to be yellow, like "@include" above.

input {

  order: 1; // expect "order" to be legal.

  align-items: center; // expect "-items" to be blue.

  background-size: cover; // expect "cover" to be blue, like "center" above.

}

input::before {
  content: '';
}

input::placeholder { // expect "placeholder" to be green, like "before" above.
  color: #999;
}

image

braver commented 3 years ago

Huh? Are you sure that's scss you're using? For one, that's not how @include works. And this package for scss definitely has no problem highlighting your example code. Maybe you're using an older version, or a different package?

braver commented 2 years ago

Can't reproduce this, at least in the upcoming 3.0 it looks good to me.

A 3.0 beta release is out now, check the readme on how to get the early builds to take advantage of the improvements and help out improving the package before we ship it to the world.

CrazyTim commented 2 years ago

Still happening for me. Could be a conflict with another package?

I'll try v3 and let you know.

willrowe commented 2 years ago

I can confirm this is working correctly in v2.5.3.

Screen Shot 2022-01-17 at 10 20 02