tomlc99 icon indicating copy to clipboard operation
tomlc99 copied to clipboard

Get line number of toml table or value in file

Open oshawa-connection opened this issue 2 years ago • 1 comments

First off, thank you so much for making this library :)

Is there a way to get the line number of a table within a file? If not, is it a good idea to implement? I'd be happy to do the pull request if it is!

For example, if a config file has an invalid value (like there is a string value that must be one of a set number of values), someone could use this function to print out "invalid value at line X" to help find and fix their config file for their app.

oshawa-connection avatar Jun 21 '22 19:06 oshawa-connection

Created a PR for this #75

oshawa-connection avatar Jun 27 '22 20:06 oshawa-connection