Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config levels #2

Open
Owez opened this issue Jun 11, 2020 · 1 comment
Open

Config levels #2

Owez opened this issue Jun 11, 2020 · 1 comment

Comments

@Owez
Copy link
Owner

Owez commented Jun 11, 2020

This is possible with the prefix of a tab, indicating that its in the last key given, for example:

my_key
    other_key other_value
    final_key final_value

Would be valid but

my_key my_value
    key_ wouldnt val_work

Wouldn't to work better with HashMap and interop with json and others.

@fogti
Copy link

fogti commented Jul 7, 2020

If you're interested, you could take a look at a library I built which abstracts away "Block-parsing": indented-blocks. Documentation is not that good, but it is probably mostly self-explaining. Entry methods are parse_nested_blocks and the Block type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants