jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
4.91k stars 1.78k forks source link

YAML::Node::EndMark() #1217

Open raphael-grimm opened 10 months ago

raphael-grimm commented 10 months ago

It would be nice to have some YAML::Node::EndMark() method (analogous to YAML::Node::Mark()). to retrieve the end position of a node. This could be used to retrieve the snipped of the input file containing the node to display it (e.g. in an error message).

(Is there already some way to get this information? (Maybe I just missed it))