Chevrotain / chevrotain

Parser Building Toolkit for JavaScript
https://chevrotain.io
Apache License 2.0
2.44k stars 200 forks source link

feat: add context argument to recoveryValueFunc #1917

Closed nupthale closed 1 year ago

nupthale commented 1 year ago

I'm using the EmbeddedActionsParser with recoveryEnabled to generate my own AST nodes.

I want some range information about the recoveryNode to generete the errorNode, but now i've got no place to find the range information.

I hope it'll provide some context information about the error when calling custom recoveryValueFunc.

bd82 commented 1 year ago

Thanks @nupthale 👍

nupthale commented 1 year ago

Thanks, by the way , when will this feature be released? @bd82

bd82 commented 1 year ago

hopefully on the weekend

nupthale commented 1 year ago

ok, Thanks

nupthale commented 1 year ago

sorry to bother😅, when will this feature be released? @bd82

bd82 commented 1 year ago

Hi @nupthale

Sorry, I was not available for a while... I am trying to figure out an npm auth issue to perform the release...

bd82 commented 1 year ago

version 10.5.0 is out on npm