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

Parsing key with leading colon #233

Closed
sconde opened this issue Mar 19, 2022 · 3 comments · Fixed by #234
Closed

Parsing key with leading colon #233

sconde opened this issue Mar 19, 2022 · 3 comments · Fixed by #234
Assignees
Labels
bug Something isn't working

Comments

@sconde
Copy link

sconde commented Mar 19, 2022

I'm attempting to replace yaml-cpp with rapidyaml in my project.

An example document is like

:foo:
  :bar: a
  :barbar: b
  :barbarbar: c

Although yaml-cpp is able to parse with the leading colon character, rapidyaml is unable to handle this

1:1:ERROR: parse error
1:1: :foo:  (size=5)
     ^~~~~  (cols 1-6)
@biojppm biojppm added the bug Something isn't working label Mar 19, 2022
@biojppm
Copy link
Owner

biojppm commented Mar 19, 2022

thanks for reporting

@biojppm biojppm self-assigned this Mar 19, 2022
@biojppm
Copy link
Owner

biojppm commented Mar 19, 2022

While waiting for a fix, you can work around the issue by quoting the keys.

@biojppm
Copy link
Owner

biojppm commented Mar 21, 2022

Notice also this only happens in the first key. Subsequent keys are fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants