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

Improve interpolate parsing and unquote output #847

Merged
merged 3 commits into from
Feb 1, 2015

Conversation

mgreter
Copy link
Contributor

@mgreter mgreter commented Jan 19, 2015

This is an extracted patch from my current work on the output part.

  • It makes the parsing for interpolations more robust
  • Adds correct unescaping in unquote (unicode chars)

This should fix the following todo tests:
(It does at least with my WIP branch ...)

  • libsass-todo-tests/25_basic_string_interpolation
  • libsass-todo-tests/42_css_imports
  • libsass-todo-tests/unquote

And there's more where this is coming from 😉
@xzyfer travis seems to break on the newest added test !?

@@ -686,6 +685,7 @@ namespace Sass {
const char* static_component(const char* src) {
return alternatives< identifier,
static_string,
percentage,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch

@xzyfer
Copy link
Contributor

xzyfer commented Jan 21, 2015

👍

@mgreter
Copy link
Contributor Author

mgreter commented Jan 24, 2015

Another improvement I was able to pull out of my WIP branch. Fixes another todo issue:

  • libsass-todo-tests/selector_interpolation_in_string/input.scss

@mgreter mgreter added this to the 3.2 milestone Jan 24, 2015
@mgreter
Copy link
Contributor Author

mgreter commented Feb 1, 2015

I'm going to merge this now. I already have some other PRs pending, which will adress/improve the naming of the prelexer functions (which @xzyfer correctly pointed out with smart_del)

mgreter added a commit that referenced this pull request Feb 1, 2015
Improve interpolate parsing and unquote output
@mgreter mgreter merged commit 4d5ea59 into sass:master Feb 1, 2015
@mgreter mgreter deleted the feature/improve-interpolate branch February 1, 2015 03:52
@mgreter mgreter self-assigned this Mar 10, 2015
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