slint/internal/compiler/tests/syntax/basic/parse_error.slint
Tobias Hunger 4230ac2572
Update copyright information to reflect name change
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00

24 lines
669 B
Text

// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
SuperSimple := Rectangle {
88;
// ^error{Parse error}
* / - + // no error there as this is already reported in the previous line
foo := Rectangle {
background: blue + 3
x: 45phx;
// ^error{Syntax error: expected ';'}
// FIXME: would be nice if the smeicolon error was on the previous line
}
there was already parse error in this scope, so no more
property <string> xyz = 425;
// ^error{Syntax error: expected ';'}
Image {
* .
// ^error{Parse error}
}
}