Highlighting between Code<-> AST doesn't work with Recast as parser
When Recast is selected, clicking in the code (on the left-hand side) or mousing over the AST (on the right-hand side) does not highlight the corresponding part of the AST/code, respectively. I've used astexplorer in the past and I thought that this used to work. Switching to another parser, for example esprima, brings back the Code<->AST highlighting, as expected.
Thanks for the report, I will look into it.
This seems to be a problem with recast. Recast itself supports multiple parsers, however, it does not pass the range option to esprima: https://github.com/benjamn/recast/blob/56b676f179547c8c5634b93a134b7878fc861c47/parsers/esprima.js#L12-L21.
I created a PR to fix this.
I noticed that the above linked issue has been merged:
- https://github.com/benjamn/recast/pull/536
I was wondering what the state of this issue is, whether it's been fixed in AST Explorer, and if so, whether it can be closed.