-
Notifications
You must be signed in to change notification settings - Fork 49
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
invalid/non stable ast for combinator with comment #189
Comments
/cc @ai what do you think about this |
Why it will change AST? |
@ai new |
Technically it should be major |
Same problem for |
/cc @ai i ahve some questions about spaces too
What node(s) should store spaces in this case (inside |
To be honest, I am not sure that I know the best answer. But I think in selector parser we should work with spaces in a different way, compare to PostCSS core. In main CSS syntax, whitespaces don’t mean anything. In selector, whitespace can have a lot of meanings. So, I think it could be better to have a special token for spaces. |
@ai yep, we already have special token for
|
Why do we need a |
@ai hm can you provide example/PoC of ast with |
|
@ai in example above |
I am not sure that we should omit them from AST. |
@ai I do not see their meaning as they really do not carry here any semantic load, also we do this right now, we can plan this on next major, but will be great solve problems with spaces using |
Yeap. This discussion is on you. Sorry, that I can't help right now. |
@ai Maybe not related to issue, but what is blocker integrate selector parser in postcss? Non standard syntax? Or nobody send a PR? |
@evilebottnawi I am afraid that we will freeze API which will not be the best. |
@ai we can afraid this forever 😄 To be honestly ast of |
Also we can release this under flag/option and as experimental (adding information to readme about non stable) We have big tests code base in stylelint and prettier and webpack so i think we catch all problems very fast |
RIght now our main focus is visitor API postcss/postcss#1245 |
Great feature 👍 Already look on this. @ai Is there any sense send a PR or better fork postcss and starting own development for prettier? Because i don't want to waste my time on something what will be never merged. |
@evilebottnawi I have a better plan. Let’s release new AST in |
@ai okay 👍 i will ping you before release or when i have some questions |
Input:
It is do impossible analyzes comments, also adopt new version to
stylelint
andprettier
. For me it is bug, but fixing this change ast.The text was updated successfully, but these errors were encountered: