From 51e0db9c7d412db054f942df9be2e517ae0a19f6 Mon Sep 17 00:00:00 2001 From: Erin Date: Wed, 12 Jul 2023 01:24:41 +0200 Subject: [PATCH] rename --- hbasm/src/macros/text.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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};