mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
compiler: Ignore leading whitespace when parsing
... and update all out test cases accordingly.
This commit is contained in:
parent
1fbbdf83b2
commit
bbdd6aeab7
49 changed files with 187 additions and 185 deletions
|
@ -31,11 +31,11 @@ export TestCase := Rectangle {
|
|||
}
|
||||
out pressed: {
|
||||
animate color, foo.x { duration: 300ms; }
|
||||
/// ^error{'foo' is not a valid element id}
|
||||
/// ^error{'foo' is not a valid element id}
|
||||
//pause: 20ms;
|
||||
animate border { duration: 120ms; }
|
||||
animate color, text.text { duration: 300ms; }
|
||||
/// ^error{'text.text' is not a property that can be animated}
|
||||
/// ^error{'text.text' is not a property that can be animated}
|
||||
|
||||
}
|
||||
]
|
||||
|
@ -74,10 +74,10 @@ export component NewSyntax {
|
|||
}
|
||||
out {
|
||||
animate color, foo.x { duration: 300ms; }
|
||||
/// ^error{'foo' is not a valid element id}
|
||||
/// ^error{'foo' is not a valid element id}
|
||||
animate border { duration: 120ms; }
|
||||
animate color, text.text { duration: 300ms; }
|
||||
/// ^error{'text.text' is not a property that can be animated}
|
||||
/// ^error{'text.text' is not a property that can be animated}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
@ -119,10 +119,10 @@ export component OldInNewSyntax {
|
|||
}
|
||||
out pressed: {
|
||||
animate color, foo.x { duration: 300ms; }
|
||||
/// ^error{'foo' is not a valid element id}
|
||||
/// ^error{'foo' is not a valid element id}
|
||||
animate border { duration: 120ms; }
|
||||
animate color, text.text { duration: 300ms; }
|
||||
/// ^error{'text.text' is not a property that can be animated}
|
||||
/// ^error{'text.text' is not a property that can be animated}
|
||||
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue