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

toml: support inline tables in arrays #2065

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sersorrel
Copy link

Syntax like this is valid TOML:

list = [ { z = 1 } ]

but currently it gets incorrectly rejected by Rouge:

image

I believe this change fixes that without introducing any obvious side-effects.

As a side-note: since 1bdd948, I think the special case for ident = { in :basic is probably no longer necessary, but I'm not confident enough in that to actually remove it right now. I also think having the ident = case in :content is incorrect, and that should be in :inline instead (or in some mixin that can be shared by :root and :inline) – currently, things like x = [ y = 2 ] are accepted despite being invalid TOML, and I believe that rule is the reason for that.

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

Successfully merging this pull request may close these issues.

1 participant