diff --git a/hbasm/src/macros/text.rs b/hbasm/src/macros/text.rs index 2bc0c5c..9a4e803 100644 --- a/hbasm/src/macros/text.rs +++ b/hbasm/src/macros/text.rs @@ -88,7 +88,7 @@ macro_rules! gen_text { match op { $( $(hbbytecode::opcode::$opcode)|* => paste::paste!({ - param_extract_iim!(lexer, $($param_i: $param_ty),*); + param_extract_itm!(lexer, $($param_i: $param_ty),*); asm.[](op, $($param_i),*); }), )* @@ -135,14 +135,14 @@ macro_rules! extract { }; } -macro_rules! param_extract_iim { +macro_rules! param_extract_itm { ($lexer:expr, $($id:ident: $ty:ident)? $(, $($tt:tt)*)?) => { $(extract!($lexer, $ty, $id);)? $( extract_pat!($lexer, Token::PSep); - param_extract_iim!($lexer, $($tt)*); + param_extract_itm!($lexer, $($tt)*); )? }; } -pub(crate) use {extract, extract_pat, gen_text, param_extract_iim}; +pub(crate) use {extract, extract_pat, gen_text, param_extract_itm};