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,
|
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,
|
||||||
)),
|
)),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue