toml: fix parsing formatting on Windows with crlf line endings (#12468)

This commit is contained in:
Larpon 2021-11-15 14:35:30 +01:00 committed by GitHub
parent a8a1e9381f
commit 78662c800c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ import toml.token
import toml.scanner
pub const (
all_formatting = [token.Kind.whitespace, .tab, .nl]
all_formatting = [token.Kind.whitespace, .tab, .cr, .nl]
space_formatting = [token.Kind.whitespace, .tab]
)