Realized we were missing an extra level of nesting for the datastructures involved in the extend, so I typedef'd a ComplexSelectorDequeDeque and updated the code to use it.
Fixed selector ordering bug. I called push_back when I should have called push_front to keep the original original compound selector at the beginning of the list.
Implemented the naive implementation of subweave from https://gist.github.com/nex3/7609394.
First pass of implementing trim. This won't do the right thing yet until sources is set in extendCompoundSelector. The 182_test_nested_extend_loop sass-spec test requires trim to pass.
First pass of adding sources to the compound selectors during extend. This makes sass-spec's 182_test_nested_extend_loop test pass. When debugging that test, I'm seeing the correct sources in all but one case. It happens to work anyway by chance.
Commenting out some prints to make it less verbose. Removing some outdated comments.