Skip to content

Commit a885fdc

Browse files
committed
add 'gen' keyword (close #927)
1 parent 939f38b commit a885fdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ pub fn ident_str(name: &str, fmt: &IdentFormat) -> String {
132132
}
133133

134134
pub fn sanitize_keyword(sc: Cow<str>) -> Cow<str> {
135-
const KEYWORDS: [&str; 55] = [
135+
const KEYWORDS: [&str; 56] = [
136136
"abstract", "alignof", "as", "async", "await", "become", "box", "break", "const",
137137
"continue", "crate", "do", "dyn", "else", "enum", "extern", "false", "final", "fn", "for",
138-
"if", "impl", "in", "let", "loop", "macro", "match", "mod", "move", "mut", "offsetof",
138+
"gen", "if", "impl", "in", "let", "loop", "macro", "match", "mod", "move", "mut", "offsetof",
139139
"override", "priv", "proc", "pub", "pure", "ref", "return", "self", "sizeof", "static",
140140
"struct", "super", "trait", "true", "try", "type", "typeof", "unsafe", "unsized", "use",
141141
"virtual", "where", "while", "yield",

0 commit comments

Comments
 (0)