| 1555 | */ |
| 1556 | |
| 1557 | static int |
| 1558 | yaml_parser_fetch_flow_entry(yaml_parser_t *parser) |
| 1559 | { |
| 1560 | yaml_mark_t start_mark, end_mark; |
| 1561 | yaml_token_t token; |
| 1562 | |
| 1563 | /* Reset any potential simple keys on the current flow level. */ |
| 1564 | |
| 1565 | if (!yaml_parser_remove_simple_key(parser)) |
| 1566 | return 0; |
| 1567 | |
| 1568 | /* Simple keys are allowed after ','. */ |
| 1569 | |
| 1570 | parser->simple_key_allowed = 1; |
| 1571 | |
| 1572 | /* Consume the token. */ |
| 1573 | |
| 1574 | start_mark = parser->mark; |
| 1575 | SKIP(parser); |
| 1576 | end_mark = parser->mark; |
| 1577 | |
| 1578 | /* Create the FLOW-ENTRY token and append it to the queue. */ |
| 1579 | |
| 1580 | TOKEN_INIT(token, YAML_FLOW_ENTRY_TOKEN, start_mark, end_mark); |
| 1581 | |
| 1582 | if (!ENQUEUE(parser, parser->tokens, token)) |
| 1583 | return 0; |
| 1584 | |
| 1585 | return 1; |
| 1586 | } |
| 1587 | |
| 1588 | /* |
| 1589 | * Produce the BLOCK-ENTRY token. |
no test coverage detected