Skip to content
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

Syntax Error: Missing digits after the exponent symbol #157

Open
Ddystopia opened this issue May 14, 2024 · 0 comments
Open

Syntax Error: Missing digits after the exponent symbol #157

Ddystopia opened this issue May 14, 2024 · 0 comments

Comments

@Ddystopia
Copy link

Code like that:

css!(
  font-size: 2em;
)

Cannot be parsed by Rust - Syntax Error: Missing digits after the exponent symbol. What one must do is wrap numbers in ${}:

css!(
  font-size: ${2}em;
)

Or use raw strings. But this is pretty bad user experience.

Can something be done about it? Maybe add exception for em so that code like that:

css!(
  font-size: 2 em;
)

Would result in font-size: 2em instead of font-size: 2 em?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant