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

Implement !global assignments #986

Merged
merged 2 commits into from
Mar 27, 2015

Conversation

mgreter
Copy link
Contributor

@mgreter mgreter commented Mar 26, 2015

Implemented correct !global and !default handling. Was actually not that hard once I "understood" how it all ought to work, but @for and @each threw me off a bit, since they don't seem to be "real" blocks (they don't seem to have their own env scope). Added a few additional spec tests which should cover some of the more advanced use cases (which haven't been covered yet). sass/sass-spec#282

Oh and btw. this fixes #613

@mgreter mgreter force-pushed the feature/global-assignments branch 4 times, most recently from b21545f to a03658b Compare March 26, 2015 21:13
@mgreter mgreter changed the title [WIP] Implement !global assignments Implement !global assignments Mar 26, 2015
@mgreter
Copy link
Contributor Author

mgreter commented Mar 26, 2015

@xzyfer maybe you want to review? IMO it's ready to be merged!

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 80.22% when pulling b221b40 on mgreter:feature/global-assignments into f0475ee on sass:master.

@mgreter mgreter self-assigned this Mar 27, 2015
@mgreter mgreter added this to the 3.2 milestone Mar 27, 2015
mgreter added a commit that referenced this pull request Mar 27, 2015
@mgreter mgreter merged commit 937ccf8 into sass:master Mar 27, 2015
@xzyfer
Copy link
Contributor

xzyfer commented Mar 28, 2015

Sorry I've been offline running a conference. I'll catch up today.

@@ -145,7 +145,9 @@ namespace Sass {
static mt19937 rand(static_cast<unsigned int>(GetSeed()));

// features
static set<string> features;
static set<string> features {
"global-variable-shadowing"
Copy link
Contributor

Choose a reason for hiding this comment

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

We should remember to mention this in the changelog.

@xzyfer
Copy link
Contributor

xzyfer commented Mar 28, 2015

LGTM, nice one

@mgreter mgreter deleted the feature/global-assignments branch April 6, 2015 17:14
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.

Support Sass 3.3 scoping
3 participants