nvim-neorocks / toml-edit.lua

Edit toml files while preserving whitespace and formatting from Lua.
MIT License
12 stars 2 forks source link

feat: add `parse_spanned` function #32

Closed vhyrro closed 2 months ago

vhyrro commented 2 months ago

This PR adds a parse_spanned function that parses a document with span information. A span_of function can then be used to query the span of a key or value of a given object in the TOML.