Skip to content

fix(css): comments in selectors - #3909

Merged
alexander-akait merged 1 commit into
masterfrom
issue-2686
Feb 7, 2018
Merged

alexander-akait merged 1 commit into
masterfrom
issue-2686

Conversation

@alexander-akait

@alexander-akait alexander-akait commented Feb 6, 2018 •

Copy link
Copy Markdown
Member

Fixes #2686

Issue about best comment places #3905

Also small restructure comments tests

return {
type: "selector-comment",
value: selector
value: selector.replace(/^ +/, "").replace(/ +$/, "")

@lydell lydell Feb 6, 2018 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just checking: Do you intentionally only replace spaces, or did you mean to remove other whitespace as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see! 👍

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@lydell approve? 😄

@alexander-akait
alexander-akait merged commit 9e6bd15 into master Feb 7, 2018
@alexander-akait
alexander-akait deleted the issue-2686 branch February 7, 2018 10:20
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)
@lock lock Bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 18, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants