Repository navigation
fix(css): comments in selectors - #3909
Merged
Merged
Conversation
alexander-akait
force-pushed
the
issue-2686
branch
from
February 6, 2018 18:08
07307a3 to
758dc4f
Compare
lydell
reviewed
Feb 6, 2018
| return { | ||
| type: "selector-comment", | ||
| value: selector | ||
| value: selector.replace(/^ +/, "").replace(/ +$/, "") |
Member
There was a problem hiding this comment.
Just checking: Do you intentionally only replace spaces, or did you mean to remove other whitespace as well?
Member
Author
There was a problem hiding this comment.
@lydell remove only spaces, it is temporary hack because we don't parse selectors with comments, after we make sure that we do not eat comments and determine their position it will be deleted
lydell
approved these changes
Feb 7, 2018
lipis
added a commit
to lipis/prettier
that referenced
this pull request
Feb 13, 2018
* 'master' of github.com:lipis/prettier: Add Facebook to users (prettier#3867) Improve the printing of CSS at-rules (prettier#3896) fix(css): comments in selectors (prettier#3909) Use the animated logo on the website's landing page (prettier#3910)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2686
Issue about best comment places #3905
Also small restructure comments tests