diff --git a/dist/index.js b/dist/index.js index 13e04e0..abe20e9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -134378,6 +134378,8 @@ function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onErr const map = new YAMLMap.YAMLMap(ctx.schema); map.flow = true; map.items.push(pair); + const endRange = (valueNode ?? keyNode).range; + map.range = [keyNode.range[0], endRange[1], endRange[2]]; coll.items.push(map); } offset = valueNode ? valueNode.range[2] : valueProps.end; @@ -134510,7 +134512,7 @@ function foldLines(source) { first = new RegExp('(.*?)(?