diff options
| author | Andrew Jeffery <dev@jeffas.io> | 2023-07-17 15:02:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-17 16:02:04 +0200 |
| commit | c98c3d1a38d7cdc7fe219cfe8ca9c88cb0609aa8 (patch) | |
| tree | 049db3a26eb94a51d000af0479d05ce9abef62d3 | |
| parent | 31efd542cb1d86a0cb036876fdb174ac5d1cb102 (diff) | |
Allow spaces in dict (#1692)
| -rw-r--r-- | crates/typst/src/syntax/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/typst/src/syntax/parser.rs b/crates/typst/src/syntax/parser.rs index 5cb31e5e..a6a4d4b3 100644 --- a/crates/typst/src/syntax/parser.rs +++ b/crates/typst/src/syntax/parser.rs @@ -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 {}", |
