hocon.rs icon indicating copy to clipboard operation
hocon.rs copied to clipboard

Provide path for each Hocon node

Open lostiniceland opened this issue 4 years ago • 1 comments
trafficstars

It would be great if a Hocon node could also yield its current path in the document.

It should merely be a additional field in the Hocon-enum, though I could be missing some complexity since I currently have no idea how this nom parser macros work and I assume you need the information from there.

lostiniceland avatar Feb 05 '21 15:02 lostiniceland

it should be possible with nom, but I'm using an old version (4.2) when current (6.1) changed a lot and is nicer to use

when trying to update, I encountered an issue (geal/nom#1021) that makes it harder to follow the Hocon spec... I should try again, that was quite some time ago

mockersf avatar Feb 17 '21 22:02 mockersf