mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 19:56:44 +01:00
dsl: need square brackets in expose
This commit is contained in:
parent
7ba08b8be3
commit
61fd07bffd
1 changed files with 2 additions and 2 deletions
|
|
@ -27,8 +27,8 @@ use crate::*;
|
|||
}
|
||||
|
||||
#[macro_export] macro_rules! expose {
|
||||
($([$self:ident:$State:ty] $(($Type:ty $(: $(($pat:literal $expr:expr))*)?))*)*) => {
|
||||
$(expose!(@impl [$self: $State] { $([$Type] => { $($($pat => $expr),*)? })* });)*
|
||||
($([$self:ident:$State:ty] $(([$($Type:tt)*] $(($pat:literal $expr:expr))*))*)*) => {
|
||||
$(expose!(@impl [$self: $State] { $([$($Type)*] => { $($pat => $expr),* })* });)*
|
||||
};
|
||||
($([$self:ident:$State:ty] { $([$($Type:tt)*] => { $($pat:pat => $expr:expr),* $(,)? })* })*) => {
|
||||
$(expose!(@impl [$self: $State] { $([$($Type)*] => { $($pat => $expr),* })* });)*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue