facebook / jsx

The JSX specification is a XML-like syntax extension to ECMAScript.
http://facebook.github.io/jsx/
1.96k stars 133 forks source link

Consider Switching the ESTree AST Extension to use JSXText instead of Literal #50

Closed sebmarkbage closed 7 years ago

sebmarkbage commented 8 years ago

https://github.com/jquery/esprima/issues/1467

Apparently people seem to be in defacto agreement on this.

cc @RReverser

vjeux commented 7 years ago

I did a quick survey of parsers using which and it looks like all the major ones are using JSXText, so I would encourage updating the spec for it.

JSXText:

JsxText:

Literal: