File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
graphql_client_codegen/src/codegen Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,11 @@ use proc_macro2::TokenStream;
2
2
use quote:: quote;
3
3
use std:: borrow:: Cow ;
4
4
5
- // List of keywords based on https://doc.rust-lang.org/grammar.html#keywords
5
+ // List of keywords based on https://doc.rust-lang.org/reference/keywords.html
6
+ // code snippet: `[...new Set($$("code.hljs").map(x => x.textContent).filter(x => x.match(/^[_a-z0-9]+$/i)))].sort()`
6
7
const RUST_KEYWORDS : & [ & str ] = & [
8
+ "Self" ,
7
9
"abstract" ,
8
- "alignof" ,
9
10
"as" ,
10
11
"async" ,
11
12
"await" ,
@@ -16,20 +17,16 @@ const RUST_KEYWORDS: &[&str] = &[
16
17
"continue" ,
17
18
"crate" ,
18
19
"do" ,
20
+ "dyn" ,
19
21
"else" ,
20
22
"enum" ,
21
23
"extern" ,
22
- "extern crate" ,
23
24
"false" ,
24
25
"final" ,
25
26
"fn" ,
26
27
"for" ,
27
- "for" ,
28
- "if let" ,
29
- "if" ,
30
28
"if" ,
31
29
"impl" ,
32
- "impl" ,
33
30
"in" ,
34
31
"let" ,
35
32
"loop" ,
@@ -38,27 +35,24 @@ const RUST_KEYWORDS: &[&str] = &[
38
35
"mod" ,
39
36
"move" ,
40
37
"mut" ,
41
- "offsetof" ,
42
38
"override" ,
43
39
"priv" ,
44
- "proc" ,
45
40
"pub" ,
46
- "pure" ,
47
41
"ref" ,
48
42
"return" ,
49
43
"self" ,
50
- "sizeof" ,
51
44
"static" ,
52
45
"struct" ,
53
46
"super" ,
54
47
"trait" ,
55
48
"true" ,
49
+ "try" ,
56
50
"type" ,
57
51
"typeof" ,
52
+ "union" ,
58
53
"unsafe" ,
59
54
"unsized" ,
60
55
"use" ,
61
- "use" ,
62
56
"virtual" ,
63
57
"where" ,
64
58
"while" ,
You can’t perform that action at this time.
0 commit comments