anchor and alias in single line

Issue #41 new
Former user created an issue

This: yaml.load(""" a: &a foo b: &b *a """)

File "C:\Python27\lib\site-packages\yaml\", line 439, in parse_block_mapping_key "expected <block end>, but found %r" %, token.start_mark) ParserError: while parsing a block mapping in "<string>", line 2, column 1: a: &a foo ^ expected <block end>, but found '<alias>' in "<string>", line 3, column 7: b: &b *a ^

some parsers can cope with that. Shouldn't it be possible in pyyaml too?

Comments (0)

  1. Log in to comment