slint/sixtyfps_compiler/tests/syntax/basic/comments.60

30 lines
686 B
Text

/* LICENSE BEGIN
This file is part of the SixtyFPS Project -- https://sixtyfps.io
Copyright (c) 2020 Olivier Goffart <olivier.goffart@sixtyfps.io>
Copyright (c) 2020 Simon Hausmann <simon.hausmann@sixtyfps.io>
SPDX-License-Identifier: GPL-3.0-only
This file is also available under commercial licensing terms.
Please contact info@sixtyfps.io for more information.
LICENSE END */
// comment
// line comment
SuperSimple := Rectangle {
/* block comment */
color: green;
//comment
/* block comment
on several
lines
*/
color: /* . */ blue;
// ^error{Duplicated property}
}
/* another comment
here*/
// this is a comment