Support property binding flags

This commit is contained in:
James Westman 2021-10-24 13:45:03 -05:00
parent 7cf3c0bfb1
commit 49658c634e
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
2 changed files with 13 additions and 1 deletions

View file

@ -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()