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

Consider a different terminology for whitespace that includes comments #478

Open
eugenesvk opened this issue Jan 13, 2025 · 0 comments
Open

Comments

@eugenesvk
Copy link
Contributor

What often tripped me when translating v1 grammar to parsing instructions was the disconnect between whitespace that I understood as literal space that's... white (i.e., all the blanks) vs KDL's definition that includes various comments.
Same thing happened during updates to v2

             ↓ this is whitespace
ws := unicode-space | multi-line-comment
                          ↑ this isn't

Maybe this space + comment could use some other term like

  • commentspace or comspace or cs or cws
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