-
-
Notifications
You must be signed in to change notification settings - Fork 539
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
🐛 emoji not supported in CSS parser #3627
Comments
That's intended by design, as Biome aims to function as a language server, so it needs to provide parsing diagnostics regardless. |
This issue also applies to property names starting with a number. I've looked at the PR and this specific issue doesn't seem to be fixed. Do you want me to open another Github issue or do you prefer to reopen this one ? |
The PR fixed also this issue. You can test it on the Playground. |
Perfect, thanks for the great work. 🙏 |
It looks like this wasn't completely fixed. It still breaks with certain emojis. Please see playground. Should this issue be reopened? |
@mayank99 Actually they are emoji that are not allowed as identifiers according to the specification (See the identifier diagram and the specification of non-ascii codepoint). Even the current draft specification doesn't include its emoji.
|
We should take a look at some browser implementations and indeed raise the issue. The intention is certainly to support all emoji. |
I raised the issue on to the folks in charge of CSS specification. See w3c/csswg-drafts#11005 In the meantime, I think we can accept these emojis because they are already allowed by browsers. |
@Conaclos Thanks so much for raising the issue with CSSWG and for accepting the additional emoji in Biome as a stopgap. I tried out 1.9.4 just now, and it works great! ✨ |
Environment information
biome rage
What happened?
When a custom property name contains an emoji, Biome fails to parse it.
I get errors in my IDE from
biome(parse)
in the form of "Expected a declaration, or an at rule but instead found '--✨'." and "Expected a declaration item but instead found '--✨'."See playground.See updated playground and related comment.
Expected result
Emojis are allowed in custom property names, so Biome should be able to parse them.
It's worth noting that since Biome doesn't support formatting/linting CSS, it should not even be parsing my CSS files.Code of Conduct
The text was updated successfully, but these errors were encountered: