fktn-k / fkYAML

A C++ header-only YAML library
MIT License
69 stars 7 forks source link

Allow backslashes in plain/single-quoted scalars #329

Closed fktn-k closed 5 months ago

fktn-k commented 5 months ago

The current fkYAML parser throws a parse_error exception when a plain/single-quoted scalar contains backslashes () which are allowed in the YAML spec.
For example, the following valid YAML snippet cannot be parsed correctly because of that wrong implementation:

plain: foo\bar.yaml
single quoted: 'foo\bar.yaml'

This PR has fixed the above issue and updated some related test cases which have wrong expectations.


Pull Request Checklist

Read the CONTRIBUTING.md file for detailed information.

Please don't

github-actions[bot] commented 5 months ago

:octocat: Upload Coverage Event Notification

Coverage data has been uploaded for the commit 4030626ef09848c488c1277e84630e3f282e3f7e. You can download the artifact which contains the same file uploaded to the Coveralls and its HTML version.

Name fkYAML_coverage.pr329.zip
ID 1455580300
URL https://github.com/fktn-k/fkYAML/actions/runs/8873963110/artifacts/1455580300