mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Fix panic when exporting invalid types
And also still allow to export builtin component
This commit is contained in:
parent
f28d6f88c2
commit
decbe0ade5
4 changed files with 78 additions and 45 deletions
|
@ -597,7 +597,10 @@ fn parse_export(p: &mut impl Parser) -> bool {
|
|||
p.consume();
|
||||
return true;
|
||||
}
|
||||
SyntaxKind::Eof => return false,
|
||||
SyntaxKind::Eof => {
|
||||
p.error("Expected comma");
|
||||
return false;
|
||||
}
|
||||
SyntaxKind::Comma => {
|
||||
p.consume();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue