Add square brackets [ and ] to BLACKLIST_CHARS
@@ -11,7 +11,7 @@ use errors::*;
/// List of chars that some vendors use in their peripheral/field names but
/// that are not valid in Rust ident
-const BLACKLIST_CHARS: &'static [char] = &['(', ')'];
+const BLACKLIST_CHARS: &'static [char] = &['(', ')', '[', ']'];
pub trait ToSanitizedPascalCase {
fn to_sanitized_pascal_case(&self) -> Cow<str>;
