| 1 | // SYNTAX TEST "source.slint" "Example code test" |
| 2 | |
| 3 | component Test { |
| 4 | states [ |
| 5 | // ^^^^^^ keyword.other.states.slint |
| 6 | expanded when root.expanded : { |
| 7 | // ^^^^^^^^ entity.name.tag.state.slint |
| 8 | // ^^^^ keyword.other.when.slint |
| 9 | height: layout.min-height; |
| 10 | // ^^^^^^ variable.other.property.slint |
| 11 | |
| 12 | in { |
| 13 | // ^^ keyword.other.state-change.slint |
| 14 | height: layout.min-height; |
| 15 | // ^^^^^^ variable.other.property.slint |
| 16 | } |
| 17 | out { |
| 18 | // ^^^ keyword.other.state-change.slint |
| 19 | animate height { duration: 200ms; easing: foobar; } |
| 20 | // ^^^^^^^ keyword.other.animate.slint |
| 21 | // ^^^^^^ variable.other.property.slint |
| 22 | // ^^^^^^^^ keyword.other.animate.setting.slint |
| 23 | // ^^^^^ constant.numeric.slint |
| 24 | // ^^^^^^ keyword.other.animate.setting.slint |
| 25 | } |
| 26 | } |
| 27 | ] |
| 28 | } |
| 29 | |
| 30 | |