fktn-k / fkYAML

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

Allow the document end marker omitted #374

Closed fktn-k closed 1 month ago

fktn-k commented 1 month ago

The current fkYAML doesn't allow the document end marker (...) omitted before a new YAML document like the following YAML snippet (extracted from the yaml-test-suite's 35KP/in.yaml):

--- !!map
? a
: b
--- !!seq
- !!str c
--- !!str
d
e
# Note that the last multiline plain scalar isn't supported by fkYAML yet.

Parsing the above YAML with fkYAML causes a false parse error which says "invalid end-of-directives marker (---) found in the contents.".
To resolve the false error, this PR has changed the implementation to allow the document end marker omitted, and the library thus assumes no directives preceeded in the next YAML document instead.


Pull Request Checklist

Read the CONTRIBUTING.md file for detailed information.

Please don't

github-actions[bot] commented 1 month ago

:octocat: Upload Coverage Event Notification

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

Name fkYAML_coverage.pr374.zip
ID 1824809610
URL https://github.com/fktn-k/fkYAML/actions/runs/10441822201/artifacts/1824809610
coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 10441822201

Details


Totals Coverage Status
Change from base Build 10440760538: 0.0%
Covered Lines: 3969
Relevant Lines: 3969

💛 - Coveralls