Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

SASS Modules (@use and @forward) #269

Merged
merged 15 commits into from
Nov 12, 2019
Merged

SASS Modules (@use and @forward) #269

merged 15 commits into from
Nov 12, 2019

Conversation

wongjn
Copy link
Contributor

@wongjn wongjn commented Oct 9, 2019

Description of the Change

Dart Sass 1.23.0 dropped recently and with it, a new module system.

This pull request adds grammar for:

  • @use
  • @forward
  • module.$variables
  • module.functions()
  • @include module.includes()

Benefits

Keeps the syntax highlighting for SASS and SCSS files relevant.

Applicable Issues

@wongjn wongjn changed the title Modules SASS Modules (@use and @forward) Oct 9, 2019
@rsese rsese added the triaged label Oct 15, 2019
@rsese
Copy link

rsese commented Oct 15, 2019

Thank you! We can't promise a specific timeframe for review but someone from the team will take a look as soon as they can.

@jquense
Copy link

jquense commented Oct 23, 2019

🙏

@darangi darangi self-assigned this Nov 6, 2019
@darangi
Copy link
Contributor

darangi commented Nov 7, 2019

Hi @wongjn, I am currently testing this PR. I used the sample snippets and I got correct scopes for all except module.functions(), I get different scopes when I test it on sass and scss files. I attached some screenshots. Can you please verify this?

*SASS
image

*SCSS
image

@wongjn
Copy link
Contributor Author

wongjn commented Nov 7, 2019

I must have overlooked the syntax there; that's now added with tests, but only for property value context.

This is because this follows the existing grammar syntax, which I feel may need a refactor to be more inline with the scss grammar. Wasn't there an issue about this?

@darangi
Copy link
Contributor

darangi commented Nov 12, 2019

@wongjn Thanks for the update, could you point me to that particular issue?

@wongjn
Copy link
Contributor Author

wongjn commented Nov 12, 2019

Sorry, I mean that as an actual question, not a rhetorical one! I couldn't find the issue — I may be confusing it with an issue in a different Sass-related repository.

@darangi
Copy link
Contributor

darangi commented Nov 12, 2019

Alright. Thanks

@darangi darangi merged commit f52ab12 into atom:master Nov 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for New @use and @forward syntax
4 participants