markty-TOML
markty-TOML copied to clipboard
Comments break tables
A comment on the same line of a table declaration cause the table to be ignored.
Reproduction
import toml from 'markty-toml';
const someTOML = `
key = "value"
[table] # Comment...
nested = "123"
`;
console.log(toml(someTOML));
↳ returns ↴
{ key: 'value' }
Removing the comment in the above example causes the parser to return the correct value.