mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Support property binding flags
This commit is contained in:
parent
7cf3c0bfb1
commit
49658c634e
2 changed files with 13 additions and 1 deletions
|
@ -103,6 +103,10 @@ def parse(tokens) -> ast.UI:
|
|||
UseIdent("bind_source").expected("the ID of a source object to bind from"),
|
||||
Op("."),
|
||||
UseIdent("bind_property").expected("a property name to bind from"),
|
||||
AnyOf(
|
||||
Sequence(Keyword("sync-create"), UseLiteral("sync_create", True)),
|
||||
Sequence(Keyword("after"), UseLiteral("after", True)),
|
||||
),
|
||||
StmtEnd().expected("`;`"),
|
||||
)
|
||||
).recover()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue