Fix misaligned indentation in comments (#734)

This commit is contained in:
Shuhei Kitagawa 2025-05-29 06:34:24 +02:00 committed by GitHub
parent 6a6c998c2f
commit f1c23f747b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 58 additions and 4 deletions

View file

@ -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
}