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

@ -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}
}
]