guid/assets/syntax.gui

37 lines
852 B
Plaintext
Raw Normal View History

2020-12-03 02:43:09 +01:00
Object (id) {
property String property-string-lalala: "value"
property Number property-number+lalala??: 12.4
property (String|Number) lalala: 42
# Sets a whole hash as attribute.
property hash property-hash: {
a: b
}
### [[[ UNCERTAIN FEATURE STARTS HERE
# Sets specific properties in a predefined hash.
property-hash-overload {
a: b
c: 12
}
# Sets a single property in a predefined hash.
property-hash-overload-alt.a: b
### ]]] UNCERTAIN FEATURE ENDS HERE
Object (id-child-1) {
property string property-child: "value"
Object (id-child-1-1) {}
}
Object (id-child-2) {
property string property-child: "value-alt"
Object {}
}
"string-child, probably ignored"
12 # Integer child, probably ignored
}