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

support ? as punctuation in NodeName #29

Open
vidhanio opened this issue Jul 29, 2023 · 1 comment
Open

support ? as punctuation in NodeName #29

vidhanio opened this issue Jul 29, 2023 · 1 comment

Comments

@vidhanio
Copy link

this would be useful for marking "optional" attributes. is this possible?

@vldm
Copy link
Collaborator

vldm commented Aug 10, 2023

I think this is a part of #8
Currently puncts is not allowed in attribute names. I think a good starting point would be to list all possible symbols in attribute names, most of them can already be implemented, but some conflicts with syn::Expr parsing.

As a workaround what do you think about moving "optional" attribute syntax to the "value" part?
foo={?x>2} - this is already doable through transform block.

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

2 participants