From fdef79644013aa325cc7e01ffec7fc69a13e56a1 Mon Sep 17 00:00:00 2001 From: Kai-Philipp Nosper Date: Tue, 8 Feb 2022 23:26:23 +0100 Subject: [PATCH] Update token macros --- src/token.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/token.rs b/src/token.rs index 3fc1c93..5624512 100644 --- a/src/token.rs +++ b/src/token.rs @@ -191,17 +191,17 @@ macro_rules! T { }; // Literals - [i64($val:tt)] => { - crate::token::Token::Literal(crate::token::Literal::I64($val)) + [i64($($val:tt)*)] => { + crate::token::Token::Literal(crate::token::Literal::I64($($val)*)) }; - [str($val:tt)] => { - crate::token::Token::Literal(crate::token::Literal::String($val)) + [str($($val:tt)*)] => { + crate::token::Token::Literal(crate::token::Literal::String($($val)*)) }; // Ident - [ident($val:tt)] => { - crate::token::Token::Ident($val) + [ident($($val:tt)*)] => { + crate::token::Token::Ident($($val)*) }; // Combo crate::token::Tokens