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

@ -24,19 +24,19 @@ export Xxx := Rectangle {
function background() {}
// ^error{Cannot declare function 'background' when a property with the same name exists}
// ^error{Cannot declare function 'background' when a property with the same name exists}
Abc {
property <int> par;
// ^error{Cannot declare property 'par' when a callback with the same name exists}
callback par();
// ^error{Cannot declare callback 'par' when a function with the same name exists}
// ^error{Cannot declare callback 'par' when a function with the same name exists}
}
TouchArea {
function clicked() {}
// ^error{Cannot override 'clicked'}
// ^error{Cannot override 'clicked'}
}
Abc { par => {} }