Tina Müller 840b65c406 Fix closing flow sequence after explicit key
The fix in #295 was not correct.

    # cat a.yaml
    ---
    [?]

    # Before
    % ./tests/run-parser-test-suite --flow keep < a.yaml
    +STR
    +DOC ---
    +SEQ []
    +MAP {}
    -SEQ
    -DOC
    -STR

    % ./tests/run-loader a.yaml
    [1] Loading 'a.yaml': run-loader: loader.c:470: yaml_parser_load_sequence_end: Assertion `parser->document->nodes.start[index-1].type == YAML_SEQUENCE_NODE' failed.
    [1]    21446 IOT instruction (core dumped)  ./tests/run-loader a.yaml

    # After
    % ./tests/run-parser-test-suite --flow keep < a.yaml
    +STR
    +DOC ---
    +SEQ []
    +MAP {}
    =VAL :
    =VAL :
    -MAP
    -SEQ
    -DOC
    -STR

    % ./tests/run-loader a.yaml
    [1] Loading 'a.yaml': SUCCESS (1 documents)
2024-05-20 04:21:56 +02:00
2017-11-30 07:14:27 -06:00
2024-04-08 18:33:30 +02:00
2024-04-08 18:33:30 +02:00
2024-04-08 18:33:30 +02:00
2020-06-01 23:19:50 +02:00
2020-05-29 21:39:56 +02:00
2020-06-01 23:19:50 +02:00
2020-06-01 23:19:50 +02:00
2020-06-01 23:19:50 +02:00
2020-06-01 23:19:50 +02:00
2020-04-11 19:08:22 +02:00
2020-04-11 19:08:22 +02:00
2017-11-30 07:14:27 -06:00

LibYAML - A C library for parsing and emitting YAML.

To build and install the library, run:

$ ./configure
$ make
# make install

Required packages:

  • gcc
  • libtool
  • make

If you checked the source code from the Git repository, run

$ ./bootstrap
$ ./configure
$ make
# make install

Required packages:

  • autoconf
  • libtool
  • make

For more information, check the LibYAML homepage.

Discuss LibYAML with the maintainers in IRC #libyaml irc.freenode.net.

You may also use the YAML-Core mailing list.

Submit bug reports and feature requests to the LibYAML bug tracker.

This project was developed for Python Software Foundation as a part of Google Summer of Code under the mentorship of Clark Evans.

The LibYAML module was written by Kirill Simonov xi@resolvent.net. It is currently maintained by the YAML community.

LibYAML is released under the MIT license. See the file LICENSE for more details.

Description
Canonical source repository for LibYAML
Readme 2.1 MiB
Languages
C 97.5%
CMake 0.9%
Makefile 0.6%
Dockerfile 0.5%
M4 0.4%
Other 0.1%