We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Both the reference (http://doc.rust-lang.org/reference.html#lexical-structure) and the grammar reference (http://doc.rust-lang.org/grammar.html#lexical-structure) are very incomplete with regards to the lexing rules. For example:
b
br#
I'm writing a lexer for an IDE (to do syntax highlighting), and since I'm not yet familar with Rust itself, this makes my life a bit harder...
The text was updated successfully, but these errors were encountered:
Yup, we'd love to get this filled out.
Sorry, something went wrong.
@bruno-medeiros there exists an Antler lexer, which only differs from the Rust lexer slightly, maybe this could help.
there exists an Antler lexer, which only differs from the Rust lexer slightly, maybe this could help.
Yeah it does. Another user had also directed me to that.
Hum, and I also just realized the Attribute rule is not a token, but a grammar rule...
I'm going to close this in favor of #30942, which is more general.
No branches or pull requests
Both the reference (http://doc.rust-lang.org/reference.html#lexical-structure) and the grammar reference (http://doc.rust-lang.org/grammar.html#lexical-structure) are very incomplete with regards to the lexing rules. For example:
b
/br#
prefixes for character and string literals.I'm writing a lexer for an IDE (to do syntax highlighting), and since I'm not yet familar with Rust itself, this makes my life a bit harder...
The text was updated successfully, but these errors were encountered: