From 6073159af31846fc60da707c7fc5f812c2ec19d7 Mon Sep 17 00:00:00 2001 From: Noj Vek Date: Sat, 8 Jun 2019 20:52:30 -0700 Subject: [PATCH 1/3] JSX: ObjectExpression as attributes rather than just the spread operator --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e195e25..a3e2f5d 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ __Elements__ JSXElement :
 - JSXSelfClosingElement
 -- JSXOpeningElement JSXChildrenopt JSXClosingElement +- JSXOpeningElement JSXChildrenopt JSXClosingElement (names of JSXOpeningElement and JSXClosingElement should match) JSXSelfClosingElement : @@ -90,13 +90,9 @@ __Attributes__ JSXAttributes :
 -- JSXSpreadAttribute JSXAttributesopt +- ObjectExpression JSXAttributesopt - JSXAttribute JSXAttributesopt -JSXSpreadAttribute : - -- `{` `...` AssignmentExpression `}` - JSXAttribute :
 - JSXAttributeName JSXAttributeInitializeropt From 42015f7494f2b1994d4653b001924ccd23b1a742 Mon Sep 17 00:00:00 2001 From: Noj Vek Date: Fri, 19 Jul 2019 09:56:45 -0700 Subject: [PATCH 2/3] revert ObjectExpression --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a3e2f5d..3af74b7 100644 --- a/README.md +++ b/README.md @@ -90,9 +90,13 @@ __Attributes__ JSXAttributes :
 -- ObjectExpression JSXAttributesopt +- JSXSpreadAttribute JSXAttributesopt - JSXAttribute JSXAttributesopt +JSXSpreadAttribute : + +- `{` `...` AssignmentExpression `}` + JSXAttribute :
 - JSXAttributeName JSXAttributeInitializeropt From 86f618932a92cf89c8eaec9fc44dd580752c80b2 Mon Sep 17 00:00:00 2001 From: Noj Vek Date: Fri, 19 Jul 2019 10:25:25 -0700 Subject: [PATCH 3/3] proposal BNF grammar --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3af74b7..25bd918 100644 --- a/README.md +++ b/README.md @@ -88,14 +88,19 @@ JSXMemberExpression : __Attributes__ -JSXAttributes :
 +JSXAttributes : -- JSXSpreadAttribute JSXAttributesopt +- `{` JSXAttributesShorthand `}` JSXAttributesopt - JSXAttribute JSXAttributesopt -JSXSpreadAttribute : +JSXAttributesShorthand : -- `{` `...` AssignmentExpression `}` +- JSXAttributeShorthand JSXAttributesShorthandopt + +JSXAttributeShorthand : + +- `...` AssignmentExpression `,`opt +- Identifier `,`opt JSXAttribute :