compiler: Ignore leading whitespace when parsing

... and update all out test cases accordingly.
This commit is contained in:
Tobias Hunger 2023-04-26 14:43:06 +02:00 committed by Tobias Hunger
parent 1fbbdf83b2
commit bbdd6aeab7
49 changed files with 187 additions and 185 deletions

View file

@ -6,13 +6,13 @@ export Test := Rectangle {
GridLayout {
Rectangle {
height: 42px;
// ^error{Cannot specify both 'height' and 'min-height'}
// ^error{Cannot specify both 'height' and 'min-height'}
min-height: 42px;
max-width: 42px;
}
Rectangle {
width: 42px;
// ^error{Cannot specify both 'width' and 'max-width'}
// ^error{Cannot specify both 'width' and 'max-width'}
min-height: 42px;
max-width: 42px;
}