def parse_flow_value(rule, path, uniq_table, container)
skip_spaces_and_comments()
name = nil
if scan(/\&([-\w]+)/)
name = parse_anchor(rule, path, uniq_table, container)
elsif scan(/\*([-\w]+)/)
return parse_alias(rule, path, uniq_table, container)
end
if scan(/!!?\w+/)
skip_spaces_and_comments()
end
if match?(/\[/)
if rule && !rule.sequence
rule = nil
end
seq = create_sequence(rule, @linenum, @column)
@anchors[name] = seq if name
parse_flow_seq(seq, rule, path, uniq_table)
return seq
end
if match?(/\{/)
if rule && !rule.mapping
rule = nil
end
map = create_mapping(rule, @linenum, @column)
@anchors[name] = map if name
parse_flow_map(map, rule, path, uniq_table)
return map
end
scalar = parse_flow_scalar(rule, path, uniq_table)
@anchors[name] = scalar if name
return scalar
end