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

Allow multiple newlines and comments in multiline arrays #490

Merged
merged 3 commits into from
Nov 23, 2017

Conversation

pradyunsg
Copy link
Member

@pradyunsg pradyunsg commented Nov 14, 2017

Closes #487
Closes #458
Closes #448

This is a modification to allow an arbitrary number of comments and newline in multiline arrays, instead of a fairly inconsistent format as currently specified.

No real functional change here, just a more one-to-one correspondance.
@ChristianSi
Copy link
Contributor

I would change the ABNF as suggested (provided it works -- didn't check), but leave the README unchanged. The old wording is IMHO good enough, while the new one is confusing and occasionally misleading. ("Multiline arrays ignore whitespace everywhere between the brackets." -- What? Single-line arrays ignore whitespace [i.e., spaces and tabs] too.)

@pradyunsg
Copy link
Member Author

"Multiline arrays ignore whitespace everywhere between the brackets.

Actually, you're right. That sentence is redundant. I'll 🔥 it.

@pradyunsg
Copy link
Member Author

@ChristianSi Does this look better?

@ChristianSi
Copy link
Contributor

@pradyunsg Looks much better to me, thanks!

Sadly I'm not in any way "officially" involved with TOML and the maintainers seem to have gone on an extended (read: possible infinite) vacation, so I'm not sure whether that'll get you anywhere...

@pradyunsg
Copy link
Member Author

Thanks @ChristianSi!

Indeed. I know that. :)

I just figured it might be a good idea to make it as easy as clicking a button to actually fix some of the things that are needed for a 1.0.0 as per @BurntSushi.

If the maintainers still take forever to come around to this or come around to this in the next minute, I don't mind either way. I do strongly prefer the latter. :P

@mojombo
Copy link
Member

mojombo commented Nov 23, 2017

Hey @pradyunsg, thanks for putting together these ABNF improvements! Merging this one as-is.

@mojombo mojombo merged commit 500d9bb into toml-lang:master Nov 23, 2017
@pradyunsg pradyunsg deleted the revisit-array branch November 23, 2017 03:11
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.

3 participants