Deep splat!

This commit is contained in:
Mike Farah
2019-12-30 16:51:07 +13:00
parent 8a6af1720d
commit 4dbdd4a805
5 changed files with 40 additions and 14 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ func guessKind(tail []string, guess yaml.Kind) yaml.Kind {
if tail[0] == "+" || errorParsingInt == nil {
return yaml.SequenceNode
}
if tail[0] == "*" && (guess == yaml.SequenceNode || guess == yaml.MappingNode) {
if (tail[0] == "*" || tail[0] == "**") && (guess == yaml.SequenceNode || guess == yaml.MappingNode) {
return guess
}
if guess == yaml.AliasNode {