Change property binding syntax

Use `<name>: bind <value>;` instead of `<name> := <value>;` for clarity
This commit is contained in:
James Westman 2021-10-26 10:53:12 -05:00
parent 55a117a5b7
commit 8ef65196f3
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6

View file

@ -99,7 +99,8 @@ def parse(tokens) -> ast.UI:
ast.Property, ast.Property,
Sequence( Sequence(
UseIdent("name"), UseIdent("name"),
Op(":="), Op(":"),
Keyword("bind"),
UseIdent("bind_source").expected("the ID of a source object to bind from"), UseIdent("bind_source").expected("the ID of a source object to bind from"),
Op("."), Op("."),
UseIdent("bind_property").expected("a property name to bind from"), UseIdent("bind_property").expected("a property name to bind from"),
@ -252,8 +253,8 @@ def parse(tokens) -> ast.UI:
OpenBlock(), OpenBlock(),
ZeroOrMore(AnyOf( ZeroOrMore(AnyOf(
style, style,
property,
binding, binding,
property,
signal, signal,
child, child,
)), )),