@@ -23,79 +23,79 @@ symbols! {
23
23
Keywords {
24
24
// Special reserved identifiers used internally for elided lifetimes,
25
25
// unnamed method parameters, crate root module, error recovery etc.
26
- Invalid , "" ,
27
- PathRoot , "{{root}}" ,
28
- DollarCrate , "$crate" ,
29
- Underscore , "_" ,
26
+ Invalid : "" ,
27
+ PathRoot : "{{root}}" ,
28
+ DollarCrate : "$crate" ,
29
+ Underscore : "_" ,
30
30
31
31
// Keywords that are used in stable Rust.
32
- As , "as" ,
33
- Box , "box" ,
34
- Break , "break" ,
35
- Const , "const" ,
36
- Continue , "continue" ,
37
- Crate , "crate" ,
38
- Else , "else" ,
39
- Enum , "enum" ,
40
- Extern , "extern" ,
41
- False , "false" ,
42
- Fn , "fn" ,
43
- For , "for" ,
44
- If , "if" ,
45
- Impl , "impl" ,
46
- In , "in" ,
47
- Let , "let" ,
48
- Loop , "loop" ,
49
- Match , "match" ,
50
- Mod , "mod" ,
51
- Move , "move" ,
52
- Mut , "mut" ,
53
- Pub , "pub" ,
54
- Ref , "ref" ,
55
- Return , "return" ,
56
- SelfLower , "self" ,
57
- SelfUpper , "Self" ,
58
- Static , "static" ,
59
- Struct , "struct" ,
60
- Super , "super" ,
61
- Trait , "trait" ,
62
- True , "true" ,
63
- Type , "type" ,
64
- Unsafe , "unsafe" ,
65
- Use , "use" ,
66
- Where , "where" ,
67
- While , "while" ,
32
+ As : "as" ,
33
+ Box : "box" ,
34
+ Break : "break" ,
35
+ Const : "const" ,
36
+ Continue : "continue" ,
37
+ Crate : "crate" ,
38
+ Else : "else" ,
39
+ Enum : "enum" ,
40
+ Extern : "extern" ,
41
+ False : "false" ,
42
+ Fn : "fn" ,
43
+ For : "for" ,
44
+ If : "if" ,
45
+ Impl : "impl" ,
46
+ In : "in" ,
47
+ Let : "let" ,
48
+ Loop : "loop" ,
49
+ Match : "match" ,
50
+ Mod : "mod" ,
51
+ Move : "move" ,
52
+ Mut : "mut" ,
53
+ Pub : "pub" ,
54
+ Ref : "ref" ,
55
+ Return : "return" ,
56
+ SelfLower : "self" ,
57
+ SelfUpper : "Self" ,
58
+ Static : "static" ,
59
+ Struct : "struct" ,
60
+ Super : "super" ,
61
+ Trait : "trait" ,
62
+ True : "true" ,
63
+ Type : "type" ,
64
+ Unsafe : "unsafe" ,
65
+ Use : "use" ,
66
+ Where : "where" ,
67
+ While : "while" ,
68
68
69
69
// Keywords that are used in unstable Rust or reserved for future use.
70
- Abstract , "abstract" ,
71
- Become , "become" ,
72
- Do , "do" ,
73
- Final , "final" ,
74
- Macro , "macro" ,
75
- Override , "override" ,
76
- Priv , "priv" ,
77
- Typeof , "typeof" ,
78
- Unsized , "unsized" ,
79
- Virtual , "virtual" ,
80
- Yield , "yield" ,
70
+ Abstract : "abstract" ,
71
+ Become : "become" ,
72
+ Do : "do" ,
73
+ Final : "final" ,
74
+ Macro : "macro" ,
75
+ Override : "override" ,
76
+ Priv : "priv" ,
77
+ Typeof : "typeof" ,
78
+ Unsized : "unsized" ,
79
+ Virtual : "virtual" ,
80
+ Yield : "yield" ,
81
81
82
82
// Edition-specific keywords that are used in stable Rust.
83
- Dyn , "dyn" , // >= 2018 Edition only
83
+ Dyn : "dyn" , // >= 2018 Edition only
84
84
85
85
// Edition-specific keywords that are used in unstable Rust or reserved for future use.
86
- Async , "async" , // >= 2018 Edition only
87
- Try , "try" , // >= 2018 Edition only
86
+ Async : "async" , // >= 2018 Edition only
87
+ Try : "try" , // >= 2018 Edition only
88
88
89
89
// Special lifetime names
90
- UnderscoreLifetime , "'_" ,
91
- StaticLifetime , "'static" ,
90
+ UnderscoreLifetime : "'_" ,
91
+ StaticLifetime : "'static" ,
92
92
93
93
// Weak keywords, have special meaning only in specific contexts.
94
- Auto , "auto" ,
95
- Catch , "catch" ,
96
- Default , "default" ,
97
- Existential , "existential" ,
98
- Union , "union" ,
94
+ Auto : "auto" ,
95
+ Catch : "catch" ,
96
+ Default : "default" ,
97
+ Existential : "existential" ,
98
+ Union : "union" ,
99
99
}
100
100
101
101
// Other symbols that can be referred to with syntax_pos::symbols::*
0 commit comments