Skip to content

toml: add compliance up until official toml-lang/toml-test@c6a78f1#26067

Merged
spytheman merged 1 commit into
vlang:masterfrom
larpon:toml/bump-toml-lang-compliance-tests-to-c6a78f1
Dec 21, 2025
Merged

toml: add compliance up until official toml-lang/toml-test@c6a78f1#26067
spytheman merged 1 commit into
vlang:masterfrom
larpon:toml/bump-toml-lang-compliance-tests-to-c6a78f1

Conversation

@larpon

@larpon larpon commented Dec 21, 2025

Copy link
Copy Markdown
Contributor

This PR adds compliance with the official TOML test suite up until and including toml-lang/toml-test@c6a78f1 (TOML v1.0)

I had to introduce a new parser helper array (immutable) to help detect immutability issues.

I'm starting to think the TOML parser might have been better off keeping track of scopes and types as well since some of the fixes here feels more like shoehorning to me but let's see what the future holds.

I'm hoping to fix some "timezone overflow" checks (added in commits after toml-lang/toml-test@c6a78f1) in a follow up PR which should bring us closer to where TOML v1.1 support was pushed to the test suite.

@larpon larpon force-pushed the toml/bump-toml-lang-compliance-tests-to-c6a78f1 branch from 50a9a73 to 4da7891 Compare December 21, 2025 12:37
Comment thread vlib/toml/parser/parser.v
Comment thread vlib/toml/parser/parser.v

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @larpon 🙇🏻 .

@spytheman spytheman merged commit 08fbe61 into vlang:master Dec 21, 2025
72 checks passed
@larpon larpon deleted the toml/bump-toml-lang-compliance-tests-to-c6a78f1 branch December 21, 2025 18:01
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.

2 participants