-
Notifications
You must be signed in to change notification settings - Fork 464
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
Selector Functions #1261
Selector Functions #1261
Conversation
1 similar comment
@@ -117,6 +118,38 @@ namespace Sass { | |||
} | |||
return val; | |||
} | |||
|
|||
#define ARGSEL(argname, seltype, contextualize) get_arg_sel<seltype>(argname, env, sig, pstate, backtrace, ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contextualize
doesn't seem to be used?
Hey @onedayitwillmake, already took a quick look yesterday and looks very nice and clean. Unfortunately appveyor doesn't yet pass, which is pretty much the only thing that I see as a blocker before merging this PR as is. @xzyfer I think at this point it will be best to merge this PR to master and I will then realign my WIP branch for the 3.3 release. I guess we need a few beta rounds anyway with 3.3. Should we create a separate release coordination issue as I did for 3.2? |
@mgreter Thank you! Yes it seems to dislike the Looking again, i see you already have a Complex_Selector_Pointer_Compare functor I can use instead! |
I have incorporated most of your changes in my latest WIP branch: #1249 - maybe check if I have missed anything! It seems to pass most of the tests and I tried to replace some functionality with more generic functions, which I added during the refactoring! |
I guess this can be closed since #1249 has been merged 🎉 |
Please note: The code in this pull request was written by myself, and is does not represent my employer.
Redoing #1064.
This is a fresh checkout of master, and then manually went in and re-implemented the selector-functions.
This is a much simpler PR with less files modified, and only a single commit - hopefully that helps make everything more clear when merging
Adds the selector functions:
Regarding the sass-spec test, there are 2 issues when calling
selector-unify
andselector-nest
and passing in a parent selector reference.I believe these are related to a couple of other issues cropping up around
&
- so I think it's safe to merge this in and tackle those as a new issue.Known Issues from sass-spec libsass issue_963 tests:
selector-unify
selector-nest