Rollup merge of #116696 - c410-f3r:in-doc, r=petrochenkov
Misc improvements cc https://github.com/rust-lang/rust/pull/116323#discussion_r1355282195 r? `@petrochenkov`
This commit is contained in:
commit
6fef4f089f
2 changed files with 35 additions and 6 deletions
|
@ -229,35 +229,61 @@ fn ident_can_begin_type(name: Symbol, span: Span, is_raw: bool) -> bool {
|
|||
#[derive(PartialEq, Encodable, Decodable, Debug, HashStable_Generic)]
|
||||
pub enum TokenKind {
|
||||
/* Expression-operator symbols. */
|
||||
/// `=`
|
||||
Eq,
|
||||
/// `<`
|
||||
Lt,
|
||||
/// `<=`
|
||||
Le,
|
||||
/// `==`
|
||||
EqEq,
|
||||
/// `!=`
|
||||
Ne,
|
||||
/// `>`
|
||||
Ge,
|
||||
/// `>=`
|
||||
Gt,
|
||||
/// `&&`
|
||||
AndAnd,
|
||||
/// `||`
|
||||
OrOr,
|
||||
/// `!`
|
||||
Not,
|
||||
/// `~`
|
||||
Tilde,
|
||||
BinOp(BinOpToken),
|
||||
BinOpEq(BinOpToken),
|
||||
|
||||
/* Structural symbols */
|
||||
/// `@`
|
||||
At,
|
||||
/// `.`
|
||||
Dot,
|
||||
/// `..`
|
||||
DotDot,
|
||||
/// `...`
|
||||
DotDotDot,
|
||||
/// `..=`
|
||||
DotDotEq,
|
||||
/// `,`
|
||||
Comma,
|
||||
/// `;`
|
||||
Semi,
|
||||
/// `:`
|
||||
Colon,
|
||||
/// `::`
|
||||
ModSep,
|
||||
/// `->`
|
||||
RArrow,
|
||||
/// `<-`
|
||||
LArrow,
|
||||
/// `=>`
|
||||
FatArrow,
|
||||
/// `#`
|
||||
Pound,
|
||||
/// `$`
|
||||
Dollar,
|
||||
/// `?`
|
||||
Question,
|
||||
/// Used by proc macros for representing lifetimes, not generated by lexer right now.
|
||||
SingleQuote,
|
||||
|
@ -296,6 +322,7 @@ pub enum TokenKind {
|
|||
/// similarly to symbols in string literal tokens.
|
||||
DocComment(CommentKind, ast::AttrStyle, Symbol),
|
||||
|
||||
/// End Of File
|
||||
Eof,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue