Allow spaces in dict (#1692)

This commit is contained in:
Andrew Jeffery 2023-07-17 15:02:04 +01:00 committed by GitHub
parent 31efd542cb
commit c98c3d1a38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1240,7 +1240,8 @@ fn validate_dict<'a>(children: impl Iterator<Item = &'a mut SyntaxNode>) {
SyntaxKind::LeftParen SyntaxKind::LeftParen
| SyntaxKind::RightParen | SyntaxKind::RightParen
| SyntaxKind::Comma | SyntaxKind::Comma
| SyntaxKind::Colon => {} | SyntaxKind::Colon
| SyntaxKind::Space => {}
kind => { kind => {
child.convert_to_error(eco_format!( child.convert_to_error(eco_format!(
"expected named or keyed pair, found {}", "expected named or keyed pair, found {}",