mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Change property binding syntax
Use `<name>: bind <value>;` instead of `<name> := <value>;` for clarity
This commit is contained in:
parent
55a117a5b7
commit
8ef65196f3
1 changed files with 3 additions and 2 deletions
|
@ -99,7 +99,8 @@ def parse(tokens) -> ast.UI:
|
|||
ast.Property,
|
||||
Sequence(
|
||||
UseIdent("name"),
|
||||
Op(":="),
|
||||
Op(":"),
|
||||
Keyword("bind"),
|
||||
UseIdent("bind_source").expected("the ID of a source object to bind from"),
|
||||
Op("."),
|
||||
UseIdent("bind_property").expected("a property name to bind from"),
|
||||
|
@ -252,8 +253,8 @@ def parse(tokens) -> ast.UI:
|
|||
OpenBlock(),
|
||||
ZeroOrMore(AnyOf(
|
||||
style,
|
||||
property,
|
||||
binding,
|
||||
property,
|
||||
signal,
|
||||
child,
|
||||
)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue