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

Clarify comment positioning #267

Open
SpecificProtagonist opened this issue Feb 1, 2021 · 1 comment
Open

Clarify comment positioning #267

SpecificProtagonist opened this issue Feb 1, 2021 · 1 comment
Labels
fix-the-spec Issues where the specification is incomplete, incorrect, or unclear.
Milestone

Comments

@SpecificProtagonist
Copy link

SpecificProtagonist commented Feb 1, 2021

The spec says comments are enclosed in parenthesis, but doesn't state where they can be used. For example, can they be placed inside of keywords (similar to how 'f''als''''e is a valid equivalent of false)?

I'd prefer if either comments can be used as whitespace, or if they can be used in between two whitespaces.

@dylanbeattie
Copy link
Collaborator

You're right - the spec is unclear here.

In Satriani, comments are handled by the parser, so they can occur between language tokens, but not inside them.

Shout(comment)my name is valid, but Sh(comment)out my name` is not.

The spec needs updating to reflect this; I'll put it on my list :)

@dylanbeattie dylanbeattie added the fix-the-spec Issues where the specification is incomplete, incorrect, or unclear. label Feb 2, 2021
@dylanbeattie dylanbeattie added this to the 2.0 milestone Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix-the-spec Issues where the specification is incomplete, incorrect, or unclear.
Projects
None yet
Development

No branches or pull requests

2 participants