From a9e0c819642001665548ab8c27b193889c4c6f9b Mon Sep 17 00:00:00 2001 From: gnsp Date: Thu, 5 Sep 2019 23:30:34 +0530 Subject: [PATCH] updated syntax and AST to support shorthand attributes --- AST.md | 2 +- README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AST.md b/AST.md index 16af254..2f7cd16 100644 --- a/AST.md +++ b/AST.md @@ -95,7 +95,7 @@ Opening element ("tag") may contain attributes: interface JSXAttribute <: Node { type: "JSXAttribute"; name: JSXIdentifier | JSXNamespacedName; - value: Literal | JSXExpressionContainer | JSXElement | JSXFragment | null; + value: Literal | JSXExpressionContainer | JSXElement | JSXFragment | JSXIdentifier | null; } interface JSXSpreadAttribute <: SpreadElement { diff --git a/README.md b/README.md index e195e25..a958831 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ JSXSpreadAttribute : JSXAttribute :
 - JSXAttributeName JSXAttributeInitializeropt +- `+` JSXIdentifier JSXAttributeName :