mirror of
https://github.com/typst/typst
synced 2025-06-28 08:12:53 +08:00
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::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 {}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user