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

Support and option to allow underscores in integers #667

Open
ingydotnet opened this issue Sep 26, 2022 · 1 comment
Open

Support and option to allow underscores in integers #667

ingydotnet opened this issue Sep 26, 2022 · 1 comment
Labels

Comments

@ingydotnet
Copy link
Member

Some 1.1 emitters put underscores in integers.

They are not part of the 1.2 spec schemas, but it would help compatability to be able to support this and other cases.

With the addition of a proposed config object we could allow this either with a specific option or the ability to set the pattern to match for the !!int tag.

@ingydotnet ingydotnet added the 6.1 label Sep 26, 2022
@ingydotnet
Copy link
Member Author

I realized pyyaml does allow underscores in integers.

In 6.1 we will likely support 1.1 and 1.2 schemas, but it still makes sense to support a compatibility option to allow them in 1.2 !!int.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant