-
-
Notifications
You must be signed in to change notification settings - Fork 32
Fix parsing double slash comments inside Sass maps #60
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
Fix parsing double slash comments inside Sass maps #60
Conversation
Please test this against the |
The code in The |
OK, that'll have to be accounted for on the |
Hi @shellscape, what are the next steps on this PR? Is it ready to merge? Or does something need to happen on the |
Current |
This is the stacktrace from the failing test run in CI:
Gulp depends on the Upgrading |
Hello @shellscape! Are there still any blockers for this PR being merged? The Travis tests are fixed and passing, and the CircleCI integration doesn't seem to be set up. |
Cheers |
Thank you very much! |
Which issue # if any, does this resolve? prettier/prettier#4659
When parsing a value that is a Sass map, and when the map contains some nested parens (nested map or function call, the tokenizer fails to recognize double slash comments:
or
These comments are parsed as operator(/)+operator(/)+word instead.
Caused by the
closeParen
handler in tokenizer incorrectly settingisURLArg
totrue
after a closing nested paren, even when there's nourl()
involved at all.Introduced in #51 (@evilebottnawi), the PR that added support for Sass-like double-slash comments.
Please check one: