slint/sixtyfps_compiler/tests/syntax/basic/comments.60
Olivier Goffart 10e8d7ffb9 Replace the regexp-based lexer with a custom lexer
The regexp crate is huge and takes more than a third of the size of the
wasm-interpreter.
2020-08-28 13:34:43 +02:00

33 lines
722 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
/* even with some /*nesting*/*/
plop
*/
// this is a comment