From 091877bbe37d4275d99db39ca44819a97c12559e Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Tue, 2 Sep 2014 22:51:48 +0300 Subject: [PATCH] Attribute spec fixes. - JSXAttributeValue can be JSXElement (supported both in Esprima-FB and Acorn-JSX and reflected in tests). - JSXSpreadAttribute is "subclass" of JSXAttribute. That also simplified JSXAttributes (list) rule. --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1c197eb..1bbbc6a 100644 --- a/README.md +++ b/README.md @@ -83,16 +83,12 @@ __Attributes__ JSXAttributes :
 -- JSXSpreadAttribute JSXAttributesopt - JSXAttribute JSXAttributesopt -JSXSpreadAttribute : - -- `{` `...` AssignmentExpression `}` - JSXAttribute :
 - JSXAttributeName `=` JSXAttributeValue +- JSXSpreadAttribute JSXAttributeName : @@ -104,6 +100,11 @@ JSXAttributeValue :
 - `"` JSXDoubleStringCharactersopt `"` - `'` JSXSingleStringCharactersopt `'` - `{` AssignmentExpression `}` +- JSXElement + +JSXSpreadAttribute : + +- `{` `...` AssignmentExpression `}` JSXDoubleStringCharacters :