@@ -5,58 +5,11 @@ use std::borrow::Cow;
5
5
// List of keywords based on https://doc.rust-lang.org/reference/keywords.html
6
6
// code snippet: `[...new Set($$("code.hljs").map(x => x.textContent).filter(x => x.match(/^[_a-z0-9]+$/i)))].sort()`
7
7
const RUST_KEYWORDS : & [ & str ] = & [
8
- "Self" ,
9
- "abstract" ,
10
- "as" ,
11
- "async" ,
12
- "await" ,
13
- "become" ,
14
- "box" ,
15
- "break" ,
16
- "const" ,
17
- "continue" ,
18
- "crate" ,
19
- "do" ,
20
- "dyn" ,
21
- "else" ,
22
- "enum" ,
23
- "extern" ,
24
- "false" ,
25
- "final" ,
26
- "fn" ,
27
- "for" ,
28
- "if" ,
29
- "impl" ,
30
- "in" ,
31
- "let" ,
32
- "loop" ,
33
- "macro" ,
34
- "match" ,
35
- "mod" ,
36
- "move" ,
37
- "mut" ,
38
- "override" ,
39
- "priv" ,
40
- "pub" ,
41
- "ref" ,
42
- "return" ,
43
- "self" ,
44
- "static" ,
45
- "struct" ,
46
- "super" ,
47
- "trait" ,
48
- "true" ,
49
- "try" ,
50
- "type" ,
51
- "typeof" ,
52
- "union" ,
53
- "unsafe" ,
54
- "unsized" ,
55
- "use" ,
56
- "virtual" ,
57
- "where" ,
58
- "while" ,
59
- "yield" ,
8
+ "Self" , "abstract" , "as" , "async" , "await" , "become" , "box" , "break" , "const" , "continue" ,
9
+ "crate" , "do" , "dyn" , "else" , "enum" , "extern" , "false" , "final" , "fn" , "for" , "if" , "impl" ,
10
+ "in" , "let" , "loop" , "macro" , "match" , "mod" , "move" , "mut" , "override" , "priv" , "pub" , "ref" ,
11
+ "return" , "self" , "static" , "struct" , "super" , "trait" , "true" , "try" , "type" , "typeof" ,
12
+ "union" , "unsafe" , "unsized" , "use" , "virtual" , "where" , "while" , "yield" ,
60
13
] ;
61
14
62
15
pub ( crate ) fn keyword_replace < ' a > ( needle : impl Into < Cow < ' a , str > > ) -> Cow < ' a , str > {
0 commit comments