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

@ -4,14 +4,14 @@
export SuperSimple := Window {
opacity: 0.5;
// ^warning{The opacity property cannot be used on the root element, it will not be applied}
// ^warning{The opacity property cannot be used on the root element, it will not be applied}
Rectangle {
opacity: false;
// ^error{Cannot convert bool to float}
// ^error{Cannot convert bool to float}
}
visible: false;
// ^warning{The visible property cannot be used on the root element, it will not be applied}
// ^warning{The visible property cannot be used on the root element, it will not be applied}
}