Skip to content

Commit 343ed53

Browse files
Merge #586
586: added dyn keyword to KEYWORDS in sanitize_keyword r=burrbull a=tiagomanczak PR to fix the problem explained in [issue 585](#585) Co-authored-by: Manczak Tiago (IFAG DSS TI FWT FW) <[email protected]>
2 parents 7264731 + 64419cf commit 343ed53

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- added `dyn` keyword to sanatizer.
1013
### Changed
1114

1215
- Generate Rust arrays for all register & cluster arrays with sequential_addresses.

src/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ impl ToSanitizedSnakeCase for str {
148148
}
149149

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

0 commit comments

Comments
 (0)