Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Support hex, octal, binary, inf, and nan #28

Merged
merged 1 commit into from
Mar 26, 2019
Merged

Conversation

winstliu
Copy link
Contributor

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

Adds support for:

  • Hex digits
  • Octal digits
  • Binary digits
  • inf
  • nan

Also highlights invalid values as invalid.

Alternate Designs

None.

Benefits

TOML 0.5 compatibility with integers & floats.

Possible Drawbacks

The invalid highlighting may catch some things that should actually be valid. I added it so that the key/value matches would terminate correctly if nothing matched.

Applicable Issues

Fixes #24

@winstliu winstliu merged commit d40776e into master Mar 26, 2019
@winstliu winstliu deleted the wl-toml-0.5-numbers branch March 26, 2019 21:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TOML 0.5: integers and floats not fully supported
1 participant