Open Ddystopia opened 4 months ago
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 ${}:
Syntax Error: Missing digits after the exponent symbol
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:
em
css!( font-size: 2 em; )
Would result in font-size: 2em instead of font-size: 2 em?
font-size: 2em
font-size: 2 em
Code like that:
Cannot be parsed by Rust -
Syntax Error: Missing digits after the exponent symbol
. What one must do is wrap numbers in ${}: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:Would result in
font-size: 2em
instead offont-size: 2 em
?