astexplorer
astexplorer copied to clipboard
Highlighting nodes doesn't work well for recast
Describe the bug With the new highlighting logic, tokens within the location information are highlighted, which is not useful.
To Reproduce Steps to reproduce the behavior:
- Select recast as parser
- Select esprima in its settings
- Click anywhere in the code
Expected behavior The corresponding AST node should be highlighted.
Screenshots

For highlighting purposes we probably should not descent into location information nodes.
This can be easily mitigated for now by selecting "Hide location information".