Produce the FLOW-ENTRY token.
(parser *yaml_parser_t)
| 1262 | |
| 1263 | // Produce the FLOW-ENTRY token. |
| 1264 | func yaml_parser_fetch_flow_entry(parser *yaml_parser_t) bool { |
| 1265 | // Reset any potential simple keys on the current flow level. |
| 1266 | if !yaml_parser_remove_simple_key(parser) { |
| 1267 | return false |
| 1268 | } |
| 1269 | |
| 1270 | // Simple keys are allowed after ','. |
| 1271 | parser.simple_key_allowed = true |
| 1272 | |
| 1273 | // Consume the token. |
| 1274 | start_mark := parser.mark |
| 1275 | skip(parser) |
| 1276 | end_mark := parser.mark |
| 1277 | |
| 1278 | // Create the FLOW-ENTRY token and append it to the queue. |
| 1279 | token := yaml_token_t{ |
| 1280 | typ: yaml_FLOW_ENTRY_TOKEN, |
| 1281 | start_mark: start_mark, |
| 1282 | end_mark: end_mark, |
| 1283 | } |
| 1284 | yaml_insert_token(parser, -1, &token) |
| 1285 | return true |
| 1286 | } |
| 1287 | |
| 1288 | // Produce the BLOCK-ENTRY token. |
| 1289 | func yaml_parser_fetch_block_entry(parser *yaml_parser_t) bool { |
no test coverage detected