Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sass-parser support for variable declarations and @warn rules #2403

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Oct 23, 2024

No description provided.

@nex3 nex3 requested a review from Goodwine October 23, 2024 20:39
@nex3 nex3 force-pushed the parser-variable branch 2 times, most recently from 1c4ab3b to c43eaab Compare October 24, 2024 00:46
(this.raws.flags?.value?.guarded === this.guarded &&
this.raws.flags?.value?.global === this.global
? this.raws.flags.raw
: (this.guarded ? ' !default' : '') + (this.global ? ' !global' : '')) +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be documentation on the order in which these are rendered in the case where both are true but raws are empty or mismatch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah, I don't think documenting the default rendering is important when it's easy to control if you want to.

@nex3 nex3 merged commit 477b596 into main Oct 25, 2024
38 checks passed
@nex3 nex3 deleted the parser-variable branch October 25, 2024 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants