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

Newlines in inline tables appear not to work #94

Open
dwilliamson opened this issue Jan 21, 2025 · 0 comments
Open

Newlines in inline tables appear not to work #94

dwilliamson opened this issue Jan 21, 2025 · 0 comments

Comments

@dwilliamson
Copy link

This is the test file:

a = {
   b = 3 }

The error Unexpected token `NewLine` while parsing inline table is emitted.

ParseKeyValue sets _hideNewLine = false. It then goes into ParseValue, which calls ParseInlineTable and inherits the value of _hideNewLine. It looks like ParseInlineTable should explicitly set it to true.

This isn't caught by any tests as #b2377a1 only added tests for inline arrays.

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

1 participant