Fix names clobbering fasm's "type" keyword

This commit is contained in:
0x4261756D 2023-07-28 03:10:57 +02:00
parent abcbe9d68b
commit 09ac457b9d
1 changed files with 1 additions and 0 deletions

View File

@ -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");
}