From a95acef09da12068a8cb9e1ac9e629be599bc1ce Mon Sep 17 00:00:00 2001 From: Clay Date: Sun, 30 Jan 2022 12:23:26 -0800 Subject: [PATCH] Add test for slots with attributes --- test/corpus/slots.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/test/corpus/slots.txt b/test/corpus/slots.txt index 92afa9b..e21c2a0 100644 --- a/test/corpus/slots.txt +++ b/test/corpus/slots.txt @@ -27,6 +27,35 @@ Named Slots (component_name (function))))) +================================================================================ +Named Slots with Attributes +================================================================================ + +<.modal> + <:header key={@value}> + + + +-------------------------------------------------------------------------------- + +(fragment + (component + (start_component + (component_name + (function))) + (slot + (start_slot + (slot_name) + (attribute + (attribute_name) + (expression + (expression_value)))) + (end_slot + (slot_name))) + (end_component + (component_name + (function))))) + ================================================================================ Slots must be a child of a Component ================================================================================