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
Proc macro panic when class name contains numbers #98
Comments
I think this is because Maud expects an identifier token there, but sees a number literal instead. (The input The fix, then, would be to accept number literals as well as identifiers as part of a class or ID name. |
shouldn't classes and ids be separated by a space (ie. #2 .3)? there is no way you could know which one is right |
I'd think it would be simpler to just have complex strings like that require quoting, like |
I like that, @lfairy what do you think? |
Yeah that's a good point. I'll be happy with @bb010g's solution (assuming you meant |
yeah that makes sense and looks nice |
Closing in favor of #128, which includes this feature (and more). |
More specifically, panics occur when using dot notation for classes such as the following:
Here's an example function that triggers the panic:
The text was updated successfully, but these errors were encountered: