Skip to content

Commit 051adb9

Browse files
bors[bot]astro
andcommitted
Merge #215
215: Add `'/'`, `' '` to `BLACKLIST_CHARS` r=jamesmunns a=astro These characters occur in [the .svd file for NXP LPC13xx](https://github.com/posborne/cmsis-svd/blob/master/data/NXP/LPC13xx_svd_v1.svd). Co-authored-by: Astro <astro@spaceboyz.net>
2 parents 755c951 + e035793 commit 051adb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub const BITS_PER_BYTE: u32 = 8;
1212

1313
/// List of chars that some vendors use in their peripheral/field names but
1414
/// that are not valid in Rust ident
15-
const BLACKLIST_CHARS: &'static [char] = &['(', ')', '[', ']'];
15+
const BLACKLIST_CHARS: &'static [char] = &['(', ')', '[', ']', '/', ' '];
1616

1717
pub trait ToSanitizedPascalCase {
1818
fn to_sanitized_pascal_case(&self) -> Cow<str>;

0 commit comments

Comments
 (0)