fixups
This commit is contained in:
parent
4ca323300f
commit
15dba79edc
|
@ -33,6 +33,6 @@ function = {WHITE_SPACE* ~ ident ~ WHITE_SPACE* ~ "=" ~ WHITE_SPACE* ~ "[[" ~ fu
|
||||||
|
|
||||||
property = {WHITE_SPACE* ~ ident ~ ":" ~ WHITE_SPACE* ~ (number|string |ident|function) ~ NEWLINE* }
|
property = {WHITE_SPACE* ~ ident ~ ":" ~ WHITE_SPACE* ~ (number|string |ident|function) ~ NEWLINE* }
|
||||||
|
|
||||||
body = {WHITE_SPACE* ~ ident ~ WHITE_SPACE ~ "{" ~ NEWLINE* ~ (property|function|body)+ ~ NEWLINE* ~ WHITE_SPACE* ~ "}" ~ NEWLINE?}
|
body = {WHITE_SPACE* ~ ident ~ WHITE_SPACE ~ "{" ~ NEWLINE* ~ (property|function|body)* ~ NEWLINE* ~ WHITE_SPACE* ~ "}" ~ NEWLINE?}
|
||||||
|
|
||||||
qml = {import* ~ NEWLINE* ~ body}
|
qml = {import* ~ NEWLINE* ~ body}
|
|
@ -0,0 +1,24 @@
|
||||||
|
Grid {
|
||||||
|
rows:2
|
||||||
|
cols:2
|
||||||
|
Rectangle {
|
||||||
|
color: "blue"
|
||||||
|
Text {
|
||||||
|
anchors.centerIn: parent
|
||||||
|
text: "Hello, Twitter! 🦀"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Rectangle {
|
||||||
|
color: "red"
|
||||||
|
}
|
||||||
|
Rectangle {
|
||||||
|
color: "red"
|
||||||
|
}
|
||||||
|
Rectangle {
|
||||||
|
color: "blue"
|
||||||
|
Text {
|
||||||
|
anchors.centerIn: parent
|
||||||
|
text: "Hello, Twitter! 🦀"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,16 +0,0 @@
|
||||||
Grid {
|
|
||||||
rows:2
|
|
||||||
cols:2
|
|
||||||
Rectangle {
|
|
||||||
color: "blue"
|
|
||||||
}
|
|
||||||
Rectangle {
|
|
||||||
color: "red"
|
|
||||||
}
|
|
||||||
Rectangle {
|
|
||||||
color: "red"
|
|
||||||
}
|
|
||||||
Rectangle {
|
|
||||||
color: "blue"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -2,8 +2,8 @@ Grid {
|
||||||
rows: 2
|
rows: 2
|
||||||
columns: 2
|
columns: 2
|
||||||
|
|
||||||
RedRectangle {
|
HelloTwitter {
|
||||||
null:null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
Loading…
Reference in New Issue