mirror of
https://github.com/goccy/go-yaml.git
synced 2025-11-11 18:51:15 +00:00
Fix misaligned indentation in comments (#734)
This commit is contained in:
parent
6a6c998c2f
commit
f1c23f747b
2 changed files with 58 additions and 4 deletions
|
|
@ -539,6 +539,9 @@ func (p *parser) validateMapKeyValueNextToken(ctx *context, keyTk, tk *Token) er
|
|||
if tk.Column() <= keyTk.Column() {
|
||||
return nil
|
||||
}
|
||||
if ctx.isComment() {
|
||||
return nil
|
||||
}
|
||||
if ctx.isFlow && (tk.Type() == token.CollectEntryType || tk.Type() == token.SequenceEndType) {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue