Skip to content

Commit

Permalink
Fix ordered map comment (#510)
Browse files Browse the repository at this point in the history
Co-authored-by: Codey Oxley <[email protected]>
  • Loading branch information
shuheiktgw and coxley authored Nov 6, 2024
1 parent 46a94fd commit 9ffa159
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 9ffa159

Please sign in to comment.