diff --git a/lua_typed_macro/src/lib.rs b/lua_typed_macro/src/lib.rs index 2a6bc7c..ad86d69 100644 --- a/lua_typed_macro/src/lib.rs +++ b/lua_typed_macro/src/lib.rs @@ -313,6 +313,12 @@ fn parse_fields( } } else if meta.path.is_ident("flatten") { flatten = true; + } else { + // Parse away any additional token that we don't care about + if meta.input.peek(Token![=]) { + meta.input.parse::()?; + meta.input.parse::()?; + } } Ok(())