Parse lowercase idents ending in !

This commit is contained in:
Agus Zubiaga 2024-10-24 11:59:31 -03:00
parent 2cce5ad023
commit 7a7650c11d
No known key found for this signature in database
57 changed files with 569 additions and 711 deletions

View file

@ -129,7 +129,8 @@ pub fn build_host_exposed_def(
linked_symbol_arguments.push((arg_var, Expr::Var(arg_symbol, arg_var)));
}
let foreign_symbol_name = format!("roc_fx_{ident}");
let ident_without_bang = ident.trim_end_matches('!');
let foreign_symbol_name = format!("roc_fx_{ident_without_bang}");
let foreign_call = Expr::ForeignCall {
foreign_symbol: foreign_symbol_name.into(),
args: linked_symbol_arguments,