mirror of https://github.com/stelzo/typst.git
Allow spaces in dict (#1692)
This commit is contained in:
parent
31efd542cb
commit
c98c3d1a38
|
|
@ -1240,7 +1240,8 @@ fn validate_dict<'a>(children: impl Iterator<Item = &'a mut SyntaxNode>) {
|
|||
SyntaxKind::LeftParen
|
||||
| SyntaxKind::RightParen
|
||||
| SyntaxKind::Comma
|
||||
| SyntaxKind::Colon => {}
|
||||
| SyntaxKind::Colon
|
||||
| SyntaxKind::Space => {}
|
||||
kind => {
|
||||
child.convert_to_error(eco_format!(
|
||||
"expected named or keyed pair, found {}",
|
||||
|
|
|
|||
Loading…
Reference in New Issue