acornjs / acorn-jsx

Alternative, faster React.js JSX parser
MIT License
648 stars 72 forks source link

Parse jsx correctly after let/var/const without semicolon #92

Open danez opened 5 years ago

danez commented 5 years ago

In https://github.com/acornjs/acorn/commit/f0cbb35e2d1f81e73dec339dcdbabdb352009ebb this was fixed:

let a
/regex/

The same issue exists with jsx and the parser is not able to parse this currently:

let a
<jsx />
RReverser commented 5 years ago

Thanks for the reporting this issue. I'm currently somewhat busy, but PRs welcome!