Fix names clobbering fasm's "type" keyword
This commit is contained in:
parent
abcbe9d68b
commit
09ac457b9d
@ -1494,6 +1494,7 @@ fn extract_arrays(tokens: &mut Vec<Token>, intrinsics: &HashMap<&str, (Vec<Datat
|
||||
|
||||
fn sanitize_name(name: String) -> String
|
||||
{
|
||||
if name == "test" {return "test_".to_string();}
|
||||
return name.replace("-", "_").replace("+", "_").replace("%", "percent").replace("/", "slash");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user