mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Parse lowercase idents ending in !
This commit is contained in:
parent
2cce5ad023
commit
7a7650c11d
57 changed files with 569 additions and 711 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue