mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-01 20:31:27 +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
|
|
@ -5,7 +5,7 @@ Test2 := Path {
|
|||
width: 640px;
|
||||
height: 480px;
|
||||
commands: "M 0 0 M -100 0 A 100 100 0 1 0 100 0 Å 100 100 0 1 0 100 0 Z";
|
||||
// ^error{Error parsing SVG commands}
|
||||
// ^error{Error parsing SVG commands}
|
||||
}
|
||||
|
||||
export TestCase := Rectangle {
|
||||
|
|
@ -13,7 +13,7 @@ export TestCase := Rectangle {
|
|||
width: 100px;
|
||||
height: 100px;
|
||||
commands: "hello world";
|
||||
// ^error{Error parsing SVG commands}
|
||||
// ^error{Error parsing SVG commands}
|
||||
stroke: red;
|
||||
stroke-width: 1px;
|
||||
}
|
||||
|
|
@ -28,7 +28,7 @@ export TestCase := Rectangle {
|
|||
width: 640px;
|
||||
height: 480px;
|
||||
commands: "M 0 0 M -100 0 A 100 100 0 1 0 0 A 100 100 0 1 0 100 0 Z";
|
||||
// ^error{Error parsing SVG commands}
|
||||
// ^error{Error parsing SVG commands}
|
||||
}
|
||||
|
||||
Test2 {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue