nvim-neorocks / toml-edit.lua

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

feat: add `parse_spanned` function #31

Closed vhyrro closed 4 months ago

vhyrro commented 4 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.

vhyrro commented 4 months ago

(cc @mrcjkb)