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

Remove Sass_List_Delimiter in favour of an is_bracketed property #2284

Merged
merged 2 commits into from
Jan 5, 2017

Conversation

xzyfer
Copy link
Contributor

@xzyfer xzyfer commented Jan 4, 2017

The list delimiter property only existed as a way to preserve parser
state on the node in order to reused the existing parse_list function.
This PR instead adds a parse_bracketed_list function to explicitly
parse bracketed lists and sets the is_bracketed property on the List
node. It turns out this is exactly what Ruby Sass does.

@xzyfer xzyfer added this to the 3.5.0.beta.1 milestone Jan 4, 2017
@xzyfer xzyfer self-assigned this Jan 4, 2017
@xzyfer xzyfer force-pushed the remove-list-delimiter branch 2 times, most recently from 7b607fb to bf095ff Compare January 4, 2017 02:52
@xzyfer xzyfer force-pushed the remove-list-delimiter branch from bf095ff to 83ec7e7 Compare January 4, 2017 12:21
xzyfer added 2 commits January 4, 2017 23:37
The list delimiter property only existed as a way to preserve parser
state on the node in order to reused the existing `parse_list` function.
This PR instead adds a `parse_bracketed_list` function to explicitly
parse bracketed lists and sets the `is_bracketed` property on the `List`
node. It turns out this is exactly what Ruby Sass does.
@xzyfer xzyfer force-pushed the remove-list-delimiter branch from 83ec7e7 to e2efacd Compare January 4, 2017 12:37
@xzyfer xzyfer merged commit 9ab7daa into sass:master Jan 5, 2017
@xzyfer xzyfer deleted the remove-list-delimiter branch January 5, 2017 07:45
xzyfer added a commit to xzyfer/libsass that referenced this pull request Jan 5, 2017
Lists gained an `is_bracketed` attribute in sass#2284. The primary
semantic difference is that the`is_bracketed` changes list equality
(sass#2281) which can matter in custom functions.

This is a breaking change so I'd like to get it into the first 3.5
beta.
xzyfer added a commit that referenced this pull request Mar 5, 2017
This reverts commit 9ab7daa, reversing
changes made to 46f5244.
mgreter pushed a commit that referenced this pull request Apr 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant