Skip to content

Conversation

andruud
Copy link
Member

@andruud andruud commented Jan 2, 2025

Currently, grammars like syntax:"auto | --mything" are not allowed, since we don't handle HYPHEN-MINUS during "consume a syntax component". This was likely an oversight when it was initially written.

Note: we might want to just remove the algorithms that parse syntax components from a string, and instead tokenize/parse using the new <syntax> production. If we do, that would also make dashed idents allowed unless we explicitly block it.

Currently, grammars like syntax:"auto | --mything" are not allowed,
since we don't handle HYPHEN-MINUS during "consume a syntax component".
This was likely an oversight when it was initially written.

Note: we might want to just remove the algorithms that parse
syntax components from a string, and instead tokenize/parse using
the new `<syntax>` production. If we do, that would *also* make
dashed idents allowed unless we explicitly block it.
@andruud
Copy link
Member Author

andruud commented Jan 2, 2025

cc @kizu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant