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

Preserve hex number format #240

Open
ovenpasta opened this issue Jan 25, 2024 · 1 comment
Open

Preserve hex number format #240

ovenpasta opened this issue Jan 25, 2024 · 1 comment

Comments

@ovenpasta
Copy link

I'd like to preserve the parsed format for integral numbers, like num=0x1234 should output num=0x1234

I don't see any support for this, would like to implement it, what would be a good way to do it?

@robloh
Copy link

robloh commented Apr 21, 2024

From my understanding the TOML specification requires parsing such numbers. Would it not be easier to wrap it in quotes? num="0x1234"?

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