Skip to content

Commit

Permalink
Fix ordered map comment
Browse files Browse the repository at this point in the history
Co-authored-by: Codey Oxley <[email protected]>
  • Loading branch information
shuheiktgw and coxley committed Nov 6, 2024
1 parent 29b57b4 commit e6d3192
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 335 deletions.
1 change: 1 addition & 0 deletions decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func (d *Decoder) setToMapValue(node ast.Node, m map[string]interface{}) error {
}

func (d *Decoder) setToOrderedMapValue(node ast.Node, m *MapSlice) error {
d.setPathToCommentMap(node)
switch n := node.(type) {
case *ast.MappingValueNode:
if n.Key.Type() == ast.MergeKeyType {
Expand Down
Loading

0 comments on commit e6d3192

Please sign in to comment.