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

Split $crate into two tokens. #587

Open
ehuss opened this issue Apr 21, 2019 · 1 comment
Open

Split $crate into two tokens. #587

ehuss opened this issue Apr 21, 2019 · 1 comment
Labels
A-grammar Area: Syntax and parsing

Comments

@ehuss
Copy link
Contributor

ehuss commented Apr 21, 2019

The grammar rules should be clear that $ crate is two tokens. I think putting a space between them would be sufficient (such as in paths.md)

@ehuss ehuss added the A-grammar Area: Syntax and parsing label Apr 21, 2019
@petrochenkov
Copy link
Contributor

This is tricky.
$ crate is two tokens in macro_rules input, but it turns into a single identifier token in the macro output after the macro is expanded, see rust-lang/rust#55640 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-grammar Area: Syntax and parsing
Projects
None yet
Development

No branches or pull requests

2 participants